Home:ALL Converter>PHP download multiple files in curl or by any other way at the same time

PHP download multiple files in curl or by any other way at the same time

Ask Time:2014-02-21T18:24:54         Author:CS GO

Json Formatter

I need to download many files from many website like e.g. 10 files which usually takes (8-9) seconds to download all the files.

What i want is to make the request simultaneously (parallel) so that the job finishes in (1-2) seconds.

I know use of curl in single requests and multiple requests. but the request of 10 files should start at the same time

e.g. 02:38:14 // all the request started at this time

I have a lot of bandwidth so parallel download will not be a problem.

is this possible in curl or by any other way ?

Author:CS GO,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21931626/php-download-multiple-files-in-curl-or-by-any-other-way-at-the-same-time
yy