curl_multi_exec()

▼魔方 西西 提交于 2019-12-10 15:31:34

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/5569507/curl-multi-exec

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!