Home  >  Article  >  Backend Development  >  PHP简单开启curl的方法(测试可行) 原创,curlfont_PHP教程

PHP简单开启curl的方法(测试可行) 原创,curlfont_PHP教程

WBOY
WBOYOriginal
2016-07-12 09:00:48964browse

PHP简单开启curl的方法(测试可行) 原创,curlfont

本文讲述了PHP简单开启curl的方法。分享给大家供大家参考,具体如下:

一、问题:

windows主机出现“Call to undefined function curl_init”错误提示,没有定义的函数,也就是php还没打开对curl_init函数的支持。

二、解决方法:

需要开启php的curl函数库。具体步骤如下:

① 打开php.ini(通常在C:\Windows\目录下,WampServer一般在类似C:\wamp\bin\php\php5.3.8\的目录下),找到复制代码 代码如下:;extension=php_curl.dll去掉前面的分号“;”

② 检查php.ini的extension_dir值是哪个目录,检查该目录有无php_curl.dll,如果没有的请下载php_curl.dll

③ 再把php目录中的libeay32.dll,ssleay32.dll拷到c:\windows\system32里面

④ 重启下 apache或者iis即可。

使用phpinfo()函数查看配置信息,可见curl已经开启:

更多关于php curl相关内容感兴趣的读者可查看本站专题:《php curl用法总结》

希望本文所述对大家PHP程序设计有所帮助。

您可能感兴趣的文章:

  • windows 2008 R2 64位服务器中开启php curl扩展的方法
  • 关于PHP的curl开启问题探讨
  • 开启CURL扩展,让服务器支持PHP curl函数(远程采集)
  • php使用curl打开https网站的方法
  • PHP CURL模拟登录新浪微博抓取页面内容 基于EaglePHP框架开发
  • PHP中使用curl入门教程

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1091110.htmlTechArticlePHP简单开启curl的方法(测试可行) 原创,curlfont 本文讲述了PHP简单开启curl的方法。分享给大家供大家参考,具体如下: 一、问题: windows主...
Statement:
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