ParallelCurl icon indicating copy to clipboard operation
ParallelCurl copied to clipboard

example test.php not working

Open peterbarretto opened this issue 15 years ago • 6 comments

I tried running the test.php example script provided but it does not output anything.What might be wrong?

peterbarretto avatar Apr 14 '10 12:04 peterbarretto

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

petewarden avatar Apr 14 '10 15:04 petewarden

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.

peterbarretto avatar Apr 14 '10 16:04 peterbarretto

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() ?

petewarden avatar Apr 16 '10 01:04 petewarden

Hi Pete,

Some version information:- Linux redhat PHP Version 5.1.6 CURL Information: libcurl/7.15.5

peterbarretto avatar Apr 19 '10 10:04 peterbarretto

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.

petewarden avatar Apr 20 '10 23:04 petewarden

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.

hammady avatar Nov 10 '13 14:11 hammady