我使用curl從頁面獲取數據Apache HTTP服務器已停止工作 - 捲曲
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $page);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
$str = curl_exec($curl);
curl_close($curl);
$raw= str_get_html($str);
其中$page
是鏈接到頁面
它的偉大工程,但是當我試圖去獲取數據從更大再正常不過我的Apache停止響應頁面
這是Apache日誌:
[Sat Sep 15 10:17:36 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.9 configured -- resuming normal operations
[Sat Sep 15 10:17:36 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sat Sep 15 10:17:36 2012] [notice] Parent: Created child process 3908
[Sat Sep 15 10:17:36 2012] [notice] Child 3908: Child process is running
[Sat Sep 15 10:17:36 2012] [notice] Child 3908: Acquired the start mutex.
[Sat Sep 15 10:17:36 2012] [notice] Child 3908: Starting 64 worker threads.
[Sat Sep 15 10:17:36 2012] [notice] Child 3908: Starting thread to listen on port 8080.
[Sat Sep 15 10:17:53 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
我認爲頁面大小是一個問題(我不確定),有人可以確認嗎?有什麼方法可以解決這個問題嗎?我試圖增加php.ini中的memory_alocation,但它沒有幫助
和「大於正常」意味着更多可測量單位的尺寸是多少? –
你知道你正在加載的內容的大小嗎? –
也沒有'memory_alocation'配置項。你的意思是'memory_limit'嗎? –