我得到這個錯誤,因爲上面的圖像顯示,同時試圖從我的站點下載由IDM的文件。只有輸入驗證碼後才能請求該頁面一次的限制,如果您再次請求該頁面,則必須再次輸入驗證碼。
如何支持在這種情況下
的下載代碼,如下
$file='test.mp3'; $download_rate = 50; //50 kb/s if(file_exists($file) && is_file($file)) { header('Cache-control: private'); header('Content-Type: application/octet-stream'); header('Content-Length: '.filesize($file)); header('Content-Disposition: filename='.$file); flush(); $file = fopen($file, "r"); while(!feof($file)) { // send the current file part to the browser print fread($file, round($download_rate * 1024)); // flush the content to the browser flush(); // sleep one second sleep(1); } fclose($file); } else { echo 'File Not Found'; }
通過'IDM' MOD你指的是共享軟件的應用「互聯網下載管理器」? – drudge 2011-03-31 18:56:16
是互聯網下載管理器或任何其他下載加速器 – Khaled 2011-04-01 14:44:24