调用未定义的函数 curl_init().? [英] Call to undefined function curl_init().?

查看:30
本文介绍了调用未定义的函数 curl_init().?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我要实施 Authorize.net 支付网关时.但是,我收到此错误:

When i am going to implement Authorize.net payment gateway. However, I got this error:

调用未定义的函数 curl_init()

Call to undefined function curl_init()

请告诉我它有什么问题.

Please let me know what is wrong in it.

推荐答案

如果您使用的是 Windows:

If you're on Windows:

转到您的 php.ini 文件并删除以下行开头的 ; 标记:

Go to your php.ini file and remove the ; mark from the beginning of the following line:

;extension=php_curl.dll

保存文件后,您必须重新启动 HTTP 服务器软件(例如 Apache),此操作才能生效.

After you have saved the file you must restart your HTTP server software (e.g. Apache) before this can take effect.

对于 Ubuntu 13.0 及更高版本,只需使用已解绑的软件包.在终端中输入以下内容进行安装,不要忘记重启服务器.

For Ubuntu 13.0 and above, simply use the debundled package. In a terminal type the following to install it and do not forgot to restart server.

sudo apt-get install php-curl

或者如果您使用旧的 PHP5

Or if you're using the old PHP5

sudo apt-get install php5-curl

sudo apt-get install php5.6-curl

然后重启apache激活包

Then restart apache to activate the package with

sudo service apache2 restart

这篇关于调用未定义的函数 curl_init().?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆