blob: 8dbcbfec79d5736280266b0c719888e6995665da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
//set headers to mp3
$mediapath = $_GET['mediapath'];
$subdir = $_GET['subdir'];
$file = $_GET['file'];
header("Content-Transfer-Encoding: binary");
header("Content-Type: audio/mp3");
header('Content-length: ' . filesize($mediapath .$subdir .$file));
header('Content-Disposition: attachment; filename="streaming.mp3"');
header('X-Pad: avoid browser bug');
Header('Cache-Control: no-cache');
readfile($mediapath .$subdir .$file);
?>
|