我有一个PHP文件提供一个文件,但问题是无论使用什么浏览器,如果您点击2个链接转到2个单独的文件,第二个下载不会启动,直到第一个做完了!有任何想法吗?使用PHP下载文件 - 一次只下载一个文件!
下载代码
header('Content-Type: application/octet-stream');
header('Content-Description: File Transfer');
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($fullpath));
readfile($fullpath);
示例链接
- 链接1:的download.php downloadfile = 1个
- 链路2:?的download.php downloadfile = 2
你确信Apache不限制并发连接数?有些安装可以做到 – 2009-10-22 21:53:29
什么是服务器的操作系统?你使用的是Apache吗?你max_concurrant_settings是什么样的? – 2009-10-22 21:54:18
服务器是运行Apache的Linux服务器。哪里可以找到max_concurrent_settings设置? – 2009-10-22 22:08:59