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

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

问题描述

可能重复:
curl_init()函数不起作用

Possible Duplicate:
curl_init() function not working

我正在使用PHP来访问Foursquare API.我已经设置了用于Foursquare身份验证的所有内容.但是,一旦我单击允许"按钮,我的callback.php就会给我以下错误:

I am using PHP for accessing the Foursquare API. I have set up everything for the authentication with Foursquare. But as soon as I click on the "Allow" button, my callback.php gives me the following error:

Fatal error: Call to undefined function curl_init() in C:\wamp\www\EpiFoursquare.php on line 119

Call Stack

Time    Memory  Function                          Location
0.0007  372592  {main}( )                         ..\callback.php:0
0.0039  571896  EpiFoursquare->getAccessToken( )  ..\callback.php:17
0.0040  572928  EpiFoursquare->request( )         ..\EpiFoursquare.php:31

此错误来自何处?我找不到原点.请帮帮我.

Where does this error come from? I cannot find the origin. Please help me out.

推荐答案

您需要初始化cURL扩展名: http://php.net/manual/en/curl.installation.php

You need to initialize the cURL extension: http://php.net/manual/en/curl.installation.php

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

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