Home > php教程 > php手册 > PHP4用户手册:函数-CRUL-curl_init

PHP4用户手册:函数-CRUL-curl_init

WBOY
Release: 2016-06-13 10:22:21
Original
1107 people have browsed it

curl_init
(PHP 4 >= 4.0.2)curl_init -- 初始化一个CURL会话 描述
 
int curl_init ([string url])
 
curl_init()函数将初始化一个新的会话,返回一个CURL句柄供网站建设服务器脚本类\PHPPHP用户手册fancyfunction.curl-setopt.html>curl_setopt(), curl_exec(),和 curl_close() 函数使用。如果可选参数被提供,那么CURLOPT_URL选项将被设置成这个参数的值。你可以使用curl_setopt()函数人工设置。
例 1. 初始化一个新的CURL会话,且取回一个网页
参见:curl_close(), curl_setopt()

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template