ParallelCurl
ParallelCurl copied to clipboard
example test.php not working
I tried running the test.php example script provided but it does not output anything.What might be wrong?
Hi Peter, what platform are you running on? I've heard of issues with multi_curl on Windows. Do you see any error messages or does the script just hang?
cheers, Pete
Hi Pete, i have tried the script on both linux as well as windows platform. i don't get any errors. i tried debugging by adding echo at certain lines and found out that the script goes on running again and again inside the checkForCompletedRequests() function.
I've just done a sanity check to make sure it runs here on my OS X and Linux (Fedora 8) systems, so I was wondering if I could get some version information from you. Maybe the output of phpinfo() ?
Hi Pete,
Some version information:- Linux redhat PHP Version 5.1.6 CURL Information: libcurl/7.15.5
Thanks Peter. I did some research, and came across this report of a general multi_curl problem in PHP 5.1.6: http://www.php.net/manual/en/function.curl-multi-exec.php#85717 Unfortunately if that's the issue, it won't be possible to work around the problem without adding a curl_multi_exec() to the loop in 5.1.6.
From all reports, the bug is fixed in later versions of PHP, but that's not much comfort if you can't upgrade your installation.
I still can't run it on Windows. It hangs on startRequest. I have installed libcurl binaries from http://curl.haxx.se/libcurl/php/install.html.