YouTip LogoYouTip

Func Curl_Init

PHP curl_init Function .example {background-color:#f3f3f3; border:1px solid #ccc; padding:10px; margin:10px 0;} .note {background-color:#ffffcc; border:1px solid #ffcc00; padding:10px; margin:10px 0;} .code {font-family: Consolas, monospace; background-color: #f5f5f5; padding: 5px;} .navi { margin-bottom: 20px; } .navi a { margin-right: 10px; } .breadcrumb { margin-bottom: 20px; } .breadcrumb a { margin-right: 5px; } .sidebar { float: left; width: 200px; margin-right: 20px; } .content { margin-left: 220px; } .footer { clear: both; text-align: center; padding: 20px; border-top: 1px solid #ccc; margin-top: 20px; } .comment { border-bottom: 1px solid #eee; padding: 10px 0; } .comment-meta { color: #666; font-size: 0.9em; } .ad-banner { text-align: center; margin: 20px 0; }

PHP curl_init Function

PHP cURL Reference PHP cURL Reference

(PHP 4 >= 4.0.2, PHP 5)

curl_init β€” Initialize a cURL session


Description

resource curl_init ([ string $url = NULL ] )

Initializes a new session and returns a cURL handle for use with the curl_setopt(), curl_exec(), and curl_close() functions.


Parameters

url

If provided, the CURLOPT_URL option will be set to this value. You can also set this value manually using the curl_setopt() function.


Return Values

Returns a cURL handle on success, or FALSE on failure.


Example

Initialize a new cURL session and fetch a webpage.


        

PHP cURL Reference PHP cURL Reference

← Func Curl_Multi_Add_HandleFunc Curl_Getinfo β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.