I\'m currently using Curl for PHP a lot. It takes a lot of time to get results of about 100 pages each time. For every request i\'m using code like this
$ch
take curl_multi - it is far better. Save the handshakes - they are not needed every time!
when i use code given in "http://php.net/curl_multi_init", response of 2 requests are conflicting. But the code written in below link, returns each response separately (in array format) https://stackoverflow.com/a/21362749/3177302
or take pcntl_fork
, fork
some new threads to execute curl_exec
. But it's not as good as curl_multi
.