Home > php教程 > php手册 > body text

XAMPP使用CURL提示“Call to undefined function curl_init”问题

WBOY
Release: 2016-05-24 13:00:45
Original
1494 people have browsed it

根据本人经验如果在使用php函数或方法出现Call to undefined function curl_init”错误提醒时就是php.ini中配置文件没有配置好了,解决方法也非常的简单.

XAMPP打开CURL的方法:

修改 X:/xampp/php/php.ini文件,查找如下代码,大约在952行,XAMPP版本不同可能有点小区别,用编辑器查找就行.

;extension=php_curl.dll

将其前面的分号去掉,然后重启Apache,搞定.

如果还是不行我们要注意一点是:要保证php_curl.dll 复制到php安装目录下的ext下,libeay32.dll和ssleay32.dll复制到php安装目录下,我的配置文件是system32,和php5ts.dll一个地儿.

文章地址:

转载随意^^请带上本文地址!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!