web/privatedoc/download.php
author cavaliet@caf4f556-3d62-0410-8435-a86758001935
Tue, 01 Dec 2009 12:01:00 +0000
changeset 97 153bfe76f961
parent 7 7a5d38af0e65
permissions -rw-r--r--
take off ENMI message

<?php
$file=$_GET['file'];

header("Content-disposition: attachment; filename=".$file);
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary"); 
header("Content-Length: ".filesize("/home/www/documents/audio/".$file));
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");
readfile("/home/www/documents/audio/".$file);
exit();
?>