Home  >  Article  >  Backend Development  >  关于curl_setopt参数的记要

关于curl_setopt参数的记要

WBOY
WBOYOriginal
2016-06-13 12:28:47775browse

关于curl_setopt参数的记录

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE)

其中true输出执行结果,false为不输出

 

fsockopen与curl_setopt请求的区别之一就是,前者是阻塞的,也就是当没有得到服务器响应时,程序会依旧执行,而curl则可以同时进行多个请求,也就是非阻塞的。

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