0

我一直在为搜索引擎编写程序,但现在我已经完成了我的索引器(大约 50 个),我想运行至少 20 个,但每次我使用超过 10 个时,似乎 file_gets_contents_curl

function file_get_contents_curl($url) {
    $ch = curl_init();

    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);

    $data = curl_exec($ch);
    curl_close($ch);

    return $data;
}

退出工作。我希望你知道我在说什么,因为我不知道很多东西

我可以在任何地方更改 php.ini 以避免此错误吗?

感谢您的帮助

编辑错误日志

[Sat Apr 13 00:27:09.571840 2013] [core:warn] [pid 720:tid 336] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Sat Apr 13 00:27:09.644889 2013] [ssl:warn] [pid 720:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

[Sat Apr 13 00:27:09.690919 2013] [mpm_winnt:notice] [pid 720:tid 336] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations

[Sat Apr 13 00:27:09.690919 2013] [mpm_winnt:notice] [pid 720:tid 336] AH00456: Server built: Aug 18 2012 12:41:37

[Sat Apr 13 00:27:09.690919 2013] [core:notice] [pid 720:tid 336] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'

[Sat Apr 13 00:27:09.691920 2013] [mpm_winnt:notice] [pid 720:tid 336] AH00418: Parent: Created child process 6876

[Sat Apr 13 00:27:10.196255 2013] [ssl:warn] [pid 6876:tid 360] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

[Sat Apr 13 00:27:10.241286 2013] [mpm_winnt:notice] [pid 6876:tid 360] AH00354: Child: Starting 150 worker threads.
4

0 回答 0