curl_multi_exec() [英] curl_multi_exec()
本文介绍了curl_multi_exec()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不了解PHP cURL函数 curl_multi_exec()
.
I dont understand the PHP cURL function curl_multi_exec()
.
int curl_multi_exec(handle h, int running)
我浏览了PHP手册 http://www.php.net ,但不理解变量运行.
I went through the PHP manual http://www.php.net but don't understand what the variable running does.
在Google上进行了大量搜索,但没有找到解释.有人可以解释吗?
Searched a lot on Google but didn't find the explanation. Can somebody explain?
推荐答案
每次调用它时,都会分配该变量以告诉您op是否仍在运行:
Every time you call it, that variable is assigned to tell you whether the op is still running:
curl_multi_exec($ch, $running);
此后,如果操作仍在运行,则 $ 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).
这篇关于curl_multi_exec()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文