$file=fopen('文件地址',"r");
$size=filesize('文件地址');
header("Content-Type: application/octet-stream");
header("Accept-Ranges: bytes");
header("Accept-Length: ".$size);
header("Content-Disposition: attachment; filename=文件名称");
echo fread($file, $size);
fclose($file);