调用未定义的函数curl_init()。 [重复]

本文翻译自:Call to undefined function curl_init().? [duplicate]

This question already has answers here : 这个问题已经在这里有了答案
Closed last year . 去年关闭。

When i am going to implement Authorize.net payment gateway. 当我要实现Authorize.net付款网关时。 However, I got this error: 但是,我收到此错误:

Call to undefined function curl_init() 调用未定义的函数curl_init()

Please let me know what is wrong in it. 请让我知道其中有什么问题。


#1楼

参考:https://stackoom.com/question/QmOB/调用未定义的函数curl-init-重复


#2楼

You have to enable curl with php. 您必须使用php启用curl。

Here is the instructions for same 是相同的说明


#3楼

The CURL extension ext/curl is not installed or enabled in your PHP installation. 您的PHP安装中未安装或启用CURL扩展名ext/curl Check the manual for information on how to install or enable CURL on your system. 查看手册以获取有关如何在系统上安装或启用CURL的信息。


#4楼

If you're on Windows: 如果您使用的是Windows:

Go to your php.ini file and remove the ; 转到您的php.ini文件并删除; mark from the beginning of the following line: 从以下行的开头进行标记:

;extension=php_curl.dll

After you have saved the file you must restart your HTTP server software (eg Apache) before this can take effect. 保存文件后, 必须重新启动HTTP服务器软件(例如Apache),然后才能生效。


For Ubuntu 13.0 and above, simply use the debundled package. 对于Ubuntu 13.0及更高版本,只需使用已解包的软件包。 In a terminal type the following to install it and do not forgot to restart server. 在终端中,键入以下内容进行安装,并且不要忘记重新启动服务器。

sudo apt-get install php-curl

Or if you're using the old PHP5 或者,如果您使用的是旧的PHP5

sudo apt-get install php5-curl

or 要么

sudo apt-get install php5.6-curl
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值