anevins Posted September 29, 2012 Share Posted September 29, 2012 (edited) Hello, I can't use CURL, $ch = curl_init(); I get the error Fatal error: Call to undefined function curl_init() I've used phpinfo() and found the php.ini directory, Loaded Configuration File D:\wamp\bin\apache\apache2.2.22\bin\php.ini I've then edited the php.ini file from that directory and removed the semi-colon in-front of extension=php_curl.dll Restarted Apache but am still receiving the error. I'm using Wamp and I know there's another php.ini file in the D:\wamp\bin\php directory, so I've uncommented that line from that file too, restarted Apache and still receive the error. I don't know where to go from here, can anyone advise me please? Edited September 29, 2012 by anevins Quote Link to comment https://forums.phpfreaks.com/topic/268900-fatal-error-call-to-undefined-function-curl_init/ Share on other sites More sharing options...
Christian F. Posted September 29, 2012 Share Posted September 29, 2012 Check to verify that you've actually have the file on your computer, and in the proper location. Also check the logs for any errors, that might explain what's happening. Quote Link to comment https://forums.phpfreaks.com/topic/268900-fatal-error-call-to-undefined-function-curl_init/#findComment-1381756 Share on other sites More sharing options...
anevins Posted September 30, 2012 Author Share Posted September 30, 2012 Which file should I be looking for? I don't have any error logs and I've checked for log_errors = On in both files and error logs are on. Quote Link to comment https://forums.phpfreaks.com/topic/268900-fatal-error-call-to-undefined-function-curl_init/#findComment-1381867 Share on other sites More sharing options...
anevins Posted September 30, 2012 Author Share Posted September 30, 2012 Thanks Christian F. I was using WAMP 64 bit version, and needed to use WAMP 32 bit version http://forum.wampserver.com/search.php?2,search=curl,author=,page=1,match_type=ALL,match_dates=30,match_forum=ALL,match_threads=0 Then I used an option in WAMP to just 'tick' CURL from the interface and it works. Quote Link to comment https://forums.phpfreaks.com/topic/268900-fatal-error-call-to-undefined-function-curl_init/#findComment-1381868 Share on other sites More sharing options...
Christian F. Posted September 30, 2012 Share Posted September 30, 2012 You're welcome. Glad you got it figured out, and thanks for posting the solution here for others to benefit from. Quote Link to comment https://forums.phpfreaks.com/topic/268900-fatal-error-call-to-undefined-function-curl_init/#findComment-1381885 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.