时间:2021-07-01 10:21:17 帮助过:6人阅读
include_once("common/conn.php")?>
$sql="select * from lxy_download";
$result=mysql_query($sql);
while($row=mysql_fetch_assoc($result)){
{
?>
$file_name = "$FileFile";
$file_dir = "system32/upload/Download/";
$filesize=filesize("$file_dir/$file_name");
Header ( 'Content-type: application/octet-stream');
Header ( 'Content-Ranges: bytes');
Header ( 'Content-Length:'.$filesize);
Header ( 'Content-Disposition: attachment; filename='. $file_name );
ob_end_clean();
flush();
readfile("$file_dir/$file_name") ;
exit(0);
}
?>
}
?>