Hi all, I've got a relatively simple script where I'm trying to perform a multiple curl call to several pages as once. I'm running this in wamp and the cURL extension is definitely enabled and normal curl functions work fine. When I run the script below the page times out:
http://pastebin.com/vxMDmnbh
I suspect the timeout's being caused by this section here:
$active = null;
do {
$mrc = curl_multi_exec($mh, $active); echo 'g';
} while($mrc == CURLM_CALL_MULTI_PERFORM);
while(false && $active && $mrc == CURLM_OK) {
if(curl_multi_select($mh) != -1) {
do {
$mrc = curl_multi_exec($mh, $active);
} while($mrc == CURLM_CALL_MULTI_PERFORM);
}
}
But I can't be sure. This is effectively the sample code given on the php.net page and it's not loading. Can anyone spot the problem?
Thanks,
Paul