Home >Backend Development >PHP Tutorial >怎么获取CURL读取远程html后完成时的状态

怎么获取CURL读取远程html后完成时的状态

WBOY
WBOYOriginal
2016-06-13 10:14:07927browse

如何获取CURL读取远程html后完成时的状态?
我想它读取163的首页完成后,给出一个回调函数,但不知道怎么写啊

------解决方案--------------------
CRUL 是同步完成的,即 curl_exec 函数只在读取完成或出错时返回

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn