我试过所有的标题。 有和没有内容长度。900 MB的http被迫下载很少完成
问题在于,dowload在中途徘徊。但只有大部分时间。
有时它工作得很好。
服务器资源的使用是微不足道的。 所有的配置文件都很好。我不会在运行时运行php脚本。
有没有人见过这个?这不是我的错吗?为什么有时?
$file = "http://domain.com/files/".$item_number.".mov";
header('Pragma: no-cache');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Description: File Download');
header('Content-Type: application/force-download');
//header ('Content-Type: video/quicktime');//doesnt seem to download at all here
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Content-Transfer-Encoding: binary');
readfile($file);
exit();
谢谢, 对不起,这是我第一次。
下载是通过PHP脚本完成的吗?你能告诉我们代码吗? –
仅仅因为他们被新手问过就停止提问。这是100%真实的问题。 –
你看过你的日志文件吗? PS - 请输入密码。 – xbonez