$url = "./public/images/2222.jpg";
$file=fopen($url,"r");
header("Content-Type: application/octet-stream");
header("Accept-Ranges: bytes");
header("Accept-Length: ".filesize($url));
header("Content-Disposition: attachment; filename=ceshi.jpg");
echo fread($file,filesize($url));
fclose($file);
}
for循环里面套了一个下载,为什么还是执行依次,可以执行多次吗 怎么改
最佳答案