Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined function curl_init() [duplicate]

Tags:

php

foursquare

Possible Duplicate:
curl_init() function not working

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.

like image 948
Adeel Kamal Avatar asked Apr 19 '12 11:04

Adeel Kamal


1 Answers

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

like image 190
zerkms Avatar answered Oct 12 '22 00:10

zerkms