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