ChinaUnix.net
相关文章推荐:

php curl init

php curl常用函数 php curl常用于:GET,POST,HTTP验证,302重定向,设置curl的代理。 1、开启PHP的curl功能 在Windows平台下,或者使用xampp之类的集成服务器的程序,会非常简单,你需要改一改你的php.ini文件的设置,找到php_curl.dll,并取消前面的分号注释就行了。如下所示: //取消注释,开启curl功能 extension=php_curl.dll 在Linux下面,那么,你需要重新编译你的PHP了,编辑时,你需要打开编译参数——在configure...

by 凝望长空 - PHP - 2011-08-10 10:50:38 阅读(2467) 回复(2)

php

相关讨论

php curl tftp tftp 实现, 用curl 有没有懂,请高手说说, PHP curl 如何实现TFTP 呢

by militala - PHP - 2010-03-26 14:48:22 阅读(1790) 回复(0)

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/106704/showart_2170167.html

by catlovemouse - php文档中心 - 2010-02-03 14:16:15 阅读(2436) 回复(0)

curlOPT_WRITEFUNCTION 设置一个回调函数,有两个参数,第一个是curl的资源句柄,第二个是写入的数据。数据写入必须依赖这个函数。返回精确的已写入数据的大小 curl_copy_handle()函数的作用是拷贝一个curl连接资源的所有内容和参数 curl_exec($another); curl_close($another); ?> curl_error()函数的作用是返回一个包含当前会话错误信息的字符串。 curl_errno()函数的作用是返回一个包含当前会话错误信息的数字编号。 ...

by yqh860921 - php文档中心 - 2009-06-24 10:46:05 阅读(1460) 回复(0)

curlOPT_INFILESIZE 设定上传文件的大小 curlOPT_LOW_SPEED_LIMIT 当传输速度小于curlOPT_LOW_SPEED_LIMIT时,PHP会根据curlOPT_LOW_SPEED_TIME来判断是否因太慢而取消传输。 curlOPT_LOW_SPEED_TIME The number of seconds the transfer should be below curlOPT_LOW_SPEED_LIMIT for PHP to consider the transfer too slow and abort. 当传输速度小于curlOPT_LOW_SPEED_LIMIT时,PHP会根据curlOPT_LOW_SPEED_TIME来判断是...

by yqh860921 - php文档中心 - 2009-06-24 10:45:07 阅读(1405) 回复(0)

目前为目最全的curl中文说明了,学PHP的要好好掌握.有很多的参数.大部份都很有用.真正掌握了它和正则,一定就是个采集高手了. PHP中的curl函数库(Client URL Library Function) curl_close - 关闭一个curl会话 curl_copy_handle - 拷贝一个curl连接资源的所有内容和参数 curl_errno - 返回一个包含当前会话错误信息的数字编号 curl_error - 返回一个包含当前会话错误信息的字符串 curl_exec - 执行一个curl会话 curl_getinf...

by yqh860921 - php文档中心 - 2009-06-24 10:43:35 阅读(1356) 回复(0)

目前为目最全的curl中文说明了,学PHP的要好好掌握.有很多的参数.大部份都很有用.真正掌握了它和正则,一定就是个采集高手了. PHP中的curl函数库(Client URL Library Function) curl_close - 关闭一个curl会话 curl_copy_handle - 拷贝一个curl连接资源的所有内容和参数 curl_errno - 返回一个包含当前会话错误信息的数字编号 curl_error - 返回一个包含当前会话错误信息的字符串 curl_exec - 执行一个curl会话 curl_getinfo - 获...

by windlike - php文档中心 - 2009-03-17 09:35:26 阅读(1312) 回复(0)

curl 是使用URL语法的传送文件工具,支持FTP、FTPS、HTTP HTPPS SCP SFTP TFTP TELNET DICT FILE和LDAP。curl 支持SSL证书、HTTP POST、HTTP PUT 、FTP 上传,kerberos、基于HTT格式的上传、代理、cookie、用户+口令证明、文件传送恢复、http代理通道和大量其他有用的技巧。详见参考手册 原来php默认并不进行此项功能的扩展,但还是有的,只是没有让它生效罢了。打开PHP安装目录,搜索以下三个文件 ssleay32.dll、libeay32.dll和...

by liuxingyuyuni - php文档中心 - 2008-05-10 11:55:26 阅读(1043) 回复(0)

Abstract In this article you will learn what the curl library is, how to use it, and some of its (advanced) options. Introduction Sooner or later you're bound to run across a certain problem in your script: how to retrieve content from other websites. There are several methods for this, and the simplest one is probably to use the fopen() function (if it's enabled), but there aren't really a lot of...

by liuxingyuyuni - php文档中心 - 2008-04-22 14:40:03 阅读(1212) 回复(0)

Using curl and libcurl with PHP Intended Audience This tutorial is intended for PHP programmers and web developers interested in using their webserver to transfer files or communicate with other servers. You will need some general knowledge of client-server protocol on the Internet, and a basic knowledge of PHP syntax. Overview curl and libcurl are libaries that allow a webserver to transfer files...

by liuxingyuyuni - php文档中心 - 2008-04-22 12:08:17 阅读(1320) 回复(0)

应朋友一个要求,对网上一个投票站点进行模拟投票,刷新得票数 分析如下: 1、分析页面,找出计票url 2、用php模拟连接 3、连接时保存对应cookie 4、用此cookie模拟request该url,达到刷新票数的目的 程序如下: curl_init(); //初始化 curl_setopt($ch, curlOPT_URL, $url); //设定模...

by panzt - PHP - 2008-07-24 17:12:44 阅读(4874) 回复(5)