title: PHP cURL multi_exec delay between requests
body: <p>If I run a standard cURL_multi_exec function (example below), I get all cURL handles requested at once. I would like to put a delay of 100ms between each request, is there a way to do that? (nothing found on Google &amp; StackOverflow search)</p>
  
  <p>I've tried usleep() before curl_multi_exec() which slows down the script but does not postpone each request.</p>
  
  <pre><code>// array of curl handles &amp; results
  $curlies = array();
  $result = array();
  $mh = curl_multi_init();
  
  // setup curl requests
  for ($id = 0; $id &lt;= 10; $id += 1) {
      $curlies[$id] = curl_init();
      curl_setopt($curlies[$id], CURLOPT_URL,            "http://google.com");
      curl_setopt($curlies[$id], CURLOPT_HEADER,         0);
      curl_setopt($curlies[$id], CURLOPT_RETURNTRANSFER, 1);
      curl_multi_add_handle($mh, $curlies[$id]);
  }
  
  // execute the handles
  $running = null;
  do {
      curl_multi_exec($mh, $running);
  } while($running &gt; 0);
  
  // get content and remove handles
  foreach($curlies as $id =&gt; $c) {
      $result[$id] = curl_multi_getcontent($c);
      curl_multi_remove_handle($mh, $c);
  }
  
  // all done
  curl_multi_close($mh);
  </code></pre>
  
  <p>I'm working on this all day, any help would be greatly appreciated! Thank you.</p>
  
  <p><strong>EDIT:</strong> Any other non-cUrl method? That would also answer my question.</p>