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_escape(3) - php
curl_file_create(3) - php
curl_multi_strerror(3) - php
curl_unescape(3) - php
curl_version(3) - php
Similar Topics in the Unix Linux Community
OpenX Server Failover Code
Help with passing XML variables to MySQL DB via PHP
Help needed in invoking shell command in PHP
Sed/replace help
Documenting xttpd on another server (not UNIX forum related)