curl_close(3) php man page | unix.com

Man Page: curl_close

Operating Environment: php

Section: 3

CURL_CLOSE(3)								 1							     CURL_CLOSE(3)

curl_close - Close a cURL session

SYNOPSIS
void curl_close (resource $ch)
DESCRIPTION
Closes a cURL session and frees all resources. The cURL handle, $ch, is also deleted.
PARAMETERS
o $ch -A cURL handle returned by curl_init(3).
RETURN VALUES
No value is returned.
EXAMPLES
Example #1 Initializing a new cURL session and fetching a web page <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?>
SEE ALSO
curl_init(3), curl_multi_close(3). PHP Documentation Group CURL_CLOSE(3)
Related Man Pages
curl_multi_exec(3) - php
curl_multi_init(3) - php
curl_share_setopt(3) - php
curl_share_close(3) - php
curl_share_init(3) - php
Similar Topics in the Unix Linux Community
OpenX Server Failover Code
Help with Flickr Geolocation script!
curl doesn't work in browser
Help needed in invoking shell command in PHP
Curl download zip extract large xml file