Home > Article > Backend Development > PHP4 User Manual: Function-CRUL-curl_init_PHP Tutorial
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, returns a CURL handle for use by the Website Construction Server Script Class PHPPHP User Manual fancyfunction.curl-setopt.html>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 set it manually using the curl_setopt() function.
Example 1. Initialize a new CURL session and retrieve a web page
See: curl_close(), curl_setopt()