(PHP 4 >= 4.0.2, PHP 5)
curl_close — Close a cURL session
void curl_close (resource $ch)
Closes a cURL session and releases all resources. The cURL handle ch will also be released.
ch
The cURL handle returned by curl_init().
There is no return value.
Initialize a cURL session to fetch a web page
<?php// Create a new cURL resource $ch = curl_init();// Set the URL and corresponding options curl_setopt($ch, CURLOPT_URL, "http://www.w3cschool.cc/"); curl_setopt($ch , CURLOPT_HEADER, 0);// Grab the URL and pass it to the browser curl_exec($ch);// Close cURL resources and release system resources curl_close($ch);?>
curl_init() - Initialize a cURL session
curl_multi_close() - close a group of cURL handles