curl_init(3) php man page | unix.com

Man Page: curl_init

Operating Environment: php

Section: 3

CURL_INIT(3)								 1							      CURL_INIT(3)

curl_init - Initialize a cURL session

SYNOPSIS
resource curl_init NULL ([string $url])
DESCRIPTION
Initializes a new session and return a cURL handle for use with the curl_setopt(3), curl_exec(3), and curl_close(3) functions.
PARAMETERS
o $url - If provided, the CURLOPT_URL option will be set to its value. You can manually set this using the curl_setopt(3) function. Note The file protocol is disabled by cURL if open_basedir is set.
RETURN VALUES
Returns a cURL handle on success, FALSE on errors.
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_close(3), curl_multi_init(3). PHP Documentation Group CURL_INIT(3)
Related Man Pages
curl_multi_exec(3) - php
curl_setopt_array(3) - php
curl_share_setopt(3) - php
curl_multi_info_read(3) - php
curl_unescape(3) - php
Similar Topics in the Unix Linux Community
Upgrade PHP (LAMP) to support cURL. Anyone?
reading web page source in unix
Basic cURL help!
Php posting help
How to include cURL library?