Home  >  Article  >  Backend Development  >  Records about curl_setopt parameters, curl_setopt parameters_PHP tutorial

Records about curl_setopt parameters, curl_setopt parameters_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 08:58:46750browse

Records about curl_setopt parameters, curl_setopt parameters

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE)

Among them, true outputs the execution result, false means no output

One of the differences between fsockopen and curl_setopt requests is that the former is blocking, that is, when there is no response from the server, the program will still be executed, while curl can make multiple requests at the same time, which is non-blocking.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1101619.htmlTechArticleRecords about curl_setopt parameters, curl_setopt parameters curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE) where true outputs the execution result, false To not output the area requested by fsockopen and curl_setopt...
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