位置: 编程技术 - 正文

PHP:curl_share_init()的用法_cURL函数

编辑:rootadmin
curl_share_init

推荐整理分享PHP:curl_share_init()的用法_cURL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.5.0)

curl_share_init — Initialize a cURL share handle

说明 resource curl_share_init ( void )

Allows to share data between cURL handles.

参数

此函数没有参数。

返回值 PHP:curl_share_init()的用法_cURL函数

Returns resource of type "cURL Share Handle".

范例

Example #1 curl_share_init() example

This example will create a cURL share handle, add two cURL handles to it, and then run them with cookie data sharing.

<?php//CreatecURLsharehandleandsetittosharecookiedata$sh=curl_share_init();curl_share_setopt($sh,CURLSHOPT_SHARE,CURL_LOCK_DATA_COOKIE);//InitializethefirstcURLhandleandassignthesharehandletoit$ch1=curl_init("

参见

curl_share_setopt() - Set an option for a cURL share handle. curl_share_close() - Close a cURL share handle

PHP:curl_setopt_array()的用法_cURL函数 curl_setopt_array(PHP5=5.1.3)curl_setopt_array为cURL传输会话批量设置选项说明boolcurl_setopt_array(resource$ch,array$options)为cURL传输会话批量设置选项。这个函数对于需

PHP:curl_share_close()的用法_cURL函数 curl_share_close(PHP5=5.5.0)curl_share_closeCloseacURLsharehandle说明voidcurl_share_close(resource$sh)ClosesacURLsharehandleandfreesallresources.参数shAcURLsharehandlereturnedbycurl_share_init()

PHP:curl_reset()的用法_cURL函数 curl_reset(PHP5=5.5.0)curl_resetResetalloptionsofalibcurlsessionhandle说明voidcurl_reset(resource$ch)Thisfunctionre-initializesalloptionssetonthegivencURLhandletothedefaultvalues.参数ch由curl_ini

本文链接地址:https://www.jiuchutong.com/biancheng/280553.html 转载请保留说明!

上一篇:PHP:curl_share_setopt()的用法_cURL函数

下一篇:PHP:curl_setopt_array()的用法_cURL函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络