phpdownloadparallel-processing

parallel downloads in PHP


I want to download (or simply file_get_contents) for 5 places. I wait say 1.2 sec for each that means in total 1.2X5=6 seconds. I want to save waiting time. I thought I could wait 1.3 sec is enough. How can I approach?


Solution

  • You can use the curl_multi_* functions to achieve parallel downloads.