Fatal error: Call to undefined function curl_init()解决方案

 首先要确定php已经扩展

在php.ini中

extension=php_curl.dll

还要保证

php_curl.dll 复制到php安装目录下的ext下,libeay32.dll和ssleay32.dll复制到php安装目录下。(我的配置文件是system32,和php5ts.dll一个地)

记得重启Apache. 正解,over!

原文地址:https://www.cnblogs.com/softwaredevelop/p/1708192.html