<?php session_start();
ob_start();
$file = ($_REQUEST['file']);
$original_file_name = basename($file);

header('Cache-Control: ');// leave blank to avoid IE errors
header('Pragma: ');// leave blank to avoid IE errors
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$original_file_name.'"');
header('Content-length:'.(string)(filesize($file)));
flush();
ob_clean();
readfile($file);
exit();

?>