CURL_INIT
(PHP 4> = 4.0.2) CURL_INIT - Initialize a CURL session
description
INT CURL_INIT ([String Url])
The curl_init () function will initialize a new session and return a CURL handle for curl_setopt (), curl_exec (), and curl_close () functions. If the optional parameter is provided, the curlopt_url option will be set to the value of this parameter. You can use the curl_setopt () function to manually set.
Example 1. Initialize a new CURL session and retrieve a web page
PHP
$ CH = curl_init ();
CURL_SETOPT ($ Ch, curlopt_url, "http://www.zend.com/");
CURL_SETOPT ($ Ch, Curlopt_Header, 0);
CURL_EXEC ($ CH);
CURL_CLOSE ($ CH);
?>
See: curl_close (), curl_setopt ()