Curl_multi_exec ()

I do not understand the PHP function cURL curl_multi_exec() .

 int curl_multi_exec(handle h, int running) 

I looked at the PHP manual http://www.php.net , but I don’t understand what the variable does.

I searched a lot on Google, but did not find an explanation. Can someone explain?

+4
source share
1 answer

Each time you call it, this variable is assigned in order to tell you if op is working:

 curl_multi_exec($ch, $running); 

After that, $running non-zero if operations are still running. If so, you will have to call it again (usually in a loop).

+4
source

Source: https://habr.com/ru/post/1346946/


All Articles