Home  >  Article  >  Backend Development  >  [乐意黎原创] php 页面提示 Fatal error: Call to undefined function curl_init()

[乐意黎原创] php 页面提示 Fatal error: Call to undefined function curl_init()

WBOY
WBOYOriginal
2016-06-23 13:29:19882browse

调用到 curl_init()的php页面提示:

Fatal error: Call to undefined function curl_init() in E:\PHPCMS\Cms\www.aerchi.com\kuaiji\weixin.php on line 196

如图:



首先, 在 php.ini 文件中开启 extension=php_curl.dll , 即把把前面的分号(;)注释划掉.

            如果是 windows 7 系统(需要openssl),还需要把 extension=php_openssl.dll 也打开 [即把把前面的分号(;)注释划掉] 就行.


其次,把php安装目录下的libeay32.dll和ssleay32.dll, 以及ext目录下的php_curl.dll ,这三个文件

  如果是 windows 7 32位,复制到C:\Windows\System32目录.

          如果是 windows 7 64位,复制到C:\Windows\SysWOW64目录.

如图:




最后,完成以上操作,重启apache即可。





乐意黎原创,禁止转载。

版权声明:本文为博主原创文章,未经博主允许不得转载。

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