web/privatedoc/download.php
author ymh@caf4f556-3d62-0410-8435-a86758001935
Wed, 11 Mar 2009 15:30:12 +0000
changeset 7 7a5d38af0e65
permissions -rw-r--r--
add privtae docs to site

<?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();
?>