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.
zerkms
You need to initialize the cURL extension: http://php.net/manual/en/curl.installation.php
FlatLander
- remove
;
fromextension=php_curl.dll
inphp.ini
; - ensure that
ssleay32.dll
andlibeay32.dll
are inWindows/system32
; - copy
php_curl.dll
intoWindows\System32
as well.
This worked for me!
来源:https://stackoverflow.com/questions/10226983/call-to-undefined-function-curl-init