php man page for curl_init

Query: curl_init

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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_setopt_array(3) - php
curl_share_setopt(3) - php
curl_multi_info_read(3) - php
curl_multi_strerror(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
Logging Via Terminal using cURL
Posting Multiple Files using cURL
Curl to download file from subdivx.com after following location without knowing the file name/extens