curl - Is making asynchronous HTTP requests possible with PHP? -


I have PHP scripts, which need to download multiple files from remote server. At present I have only files with CRL Has a loop in the download and processing, which means that it does not start before downloading a file - the time before running the script increases significantly.

It is possible to start many instances of CRL, for example, to download the asynchronous files without ending the previous files at any one time? If so, how will this be accomplished?

Yes

is there (or view :). This is a multi-threaded curl library.

As another solution, you can write a script that is in a language that supports threading, such as Ruby or Python again, just call script with PHP, rather than simple looks like.

Comments