首页 帮助中心 云服务器问题 应用类问题 最新PHP版本PHP开启curl_init

最新PHP版本PHP开启curl_init

应用类问题 26 次浏览 2026/1/8

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

1、打开php.ini,开启extension=php_curl.dll
2、检查php.ini的extension_dir值是哪个目录,检查有无php_curl.dll,没有的请下载php_curl.dll
3、再把php目录中的libeay32.dll,ssleay32.dll拷到c:\windows\system32里面
4、重启下 apache

扩展阅读:http://jingyan.baidu.com/article/76a7e409bbc833fc3b6e15e7.html


这篇文章对您有帮助吗?
工单