Here is my current code:
I’m trying to understand curl_multi_exec. I’ve copied a piece of the manual example here. So I’m wondering, how does it work? The first loop sends the http request I guess? But it then it is followed by a loop inside a loop using functions with seemingly undocumented flags..
Is there any sane way to make a HTTP request asynchronously in PHP without throwing out the response? I.e., something similar to AJAX – the PHP script initiates the request, does it’s own thing and later, when the response is received, a callback function/method or another script handles the response.