Tech Stuff


Tags / Curl

Understanding PHP multi_curl_exec loops

  • August 29, 2012
  • php  
  • curl  
  • php  
  • understanding  

In the PHP curl_multi_exec manual, a strange 3 loops are given as an example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php
do {
    $mrc = curl_multi_exec($mh, $active);
} while ($mrc == CURLM_CALL_MULTI_PERFORM);

while ($active && $mrc …
Read more...
Powered by Hugo and Whiteplain