Home > Backend Development > PHP Tutorial > PHP4 User Manual: Function-CRUL-curl_init_PHP Tutorial

PHP4 User Manual: Function-CRUL-curl_init_PHP Tutorial

WBOY
Release: 2016-07-13 17:22:14
Original
1029 people have browsed it

curl_init
(PHP 4 >= 4.0.2)curl_init -- Initialize a CURL session description
 
int curl_init ([string url])

The curl_init() function will initialize a new Session, returns a CURL handle for use by the Website Construction Server Script Class PHPPHP User Manual fancyfunction.curl-setopt.html>curl_setopt(), curl_exec(), and curl_close() functions. If the optional parameter is provided, the CURLOPT_URL option will be set to the value of this parameter. You can set it manually using the curl_setopt() function.
Example 1. Initialize a new CURL session and retrieve a web page
See: curl_close(), curl_setopt()

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532355.htmlTechArticlecurl_init (PHP 4 >= 4.0.2)curl_init -- Initialize a CURL session description int curl_init ([string url ]) The curl_init() function will initialize a new session and return a CURL handle for the website...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template