首页 > 编程知识 正文

php开启curl,php开启curl扩展

时间:2023-05-05 11:46:03 阅读:59423 作者:3396

昨天写文章的时候,突然出现了一个淘气的臭虫。

要跳到404页吗?

于是我赶紧打开debug,看看是什么情况!

显示的错误是calltoundefinedfunctionhomecontrollercurl _ init (

没有加入curl扩展……。

(ps )之前写文章的时候,从来没有出现过这种情况,很淘气~

记录安装说明:

(1、下载并安装curl ) #源包列表(https://curl.haxx.se/download/或https://curl.haxx.se/下载download.html )或直接下载7.55.1版curr curl-7.55.1.tar.gz #解压缩tar-zxvf curl-7.55.1.tar 预编译(指定安装位置) mkdir/usr/loc curl make make安装(2,生成curl扩展名) php源包的安装位置CD/data/soft/PPP 生成usr/local/PHP/HXDBD/Phpipi配置--- with-PHP-config=/usr/local/PHP/hx DBD/PHP-config---with 扩展/否-调试- zts-2012 12 12/'扩展=curl.so (4,重新启动php-fpm )/usr/local PHP-fpm/usr/local /

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。