php中curl不支持解决办法
修改你的php配置,把php.ini中的;extension=php_curl.dll中的分号去掉;
然后重启apache测试看可不可以,一般情况是没问题了,如果还是不行我们可
1、将PHP文件夹下的三个文件
php_curl.dll,
libeay32.dll,
ssleay32.dll
复制到system32下;
3、重启apache。
测试
<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy2175')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy2175><?php
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,”http://www.111cn.net”);
curl_setopt($ch,CURLOPT_HEADER,1);
curl_exec($ch);
curl_close($ch);
?>
这样就成功了哦。
您可能感兴趣的文章:
php cURL https链接报错:Unknown SSL protocol error in connection to
php中的curl使用心得详解
php中curl不支持解决办法
php中开启curl扩展的方法详解
php中curl实现GET和POST请求抓取网页或上传文件
php中file_get_contents代替使用curl示例
php下载css中图片函数
curl模拟http请求范例详析
php curl超时设置详解
php 获取远程网页内容简单函数