|
PHP5中文手册
curl_exec(PHP 4 >= 4.0.2, PHP 5) curl_exec — Perform a cURL session 说明
mixed curl_exec
( resource $ch
)
Execute the given cURL session. This function should be called after initializing a cURL session and all the options for the session are set. 返回值如果成功则返回 TRUE,失败则返回 FALSE。 However, if the CURLOPT_RETURNTRANSFER option is set, it will return the result on success, FALSE on failure. 范例
Example#1 Fetching a web page
<?php |