PHP cURL multi_exec delay between requests
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 & StackOverflow search) I've tried usleep() before curl_multi_exec() which slows down the script but does not postpone each request. // array of curl handles & results $curlies = array(); $result = array(); $mh = curl_multi_init(); // setup curl requests for ($id = 0; $id <= 10; $id += 1) { $curlies[$id] = curl_init(); curl_setopt($curlies[$id], CURLOPT_URL, "http://google.com");