简体   繁体   中英

curl_multi_exec()

I dont understand the PHP cURL function curl_multi_exec() .

int curl_multi_exec(handle h, int running)

I went through the PHP manual http://www.php.net but don't understand what the variable running does.

Searched a lot on Google but didn't find the explanation. Can somebody explain?

Every time you call it, that variable is assigned to tell you whether the op is still running:

curl_multi_exec($ch, $running);

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM