Fatal error: Call to undefined function curl_init()
Written by Mega Champ on June 20, 2009 – 1:03 pm -If you are using php, apache wamp on windows vista this tip is for you.
While working on a script i was getting the “Fatal error: Call to undefined function curl_init()” error all the time. Believe me when i say, there are countless solutions been listed on net, but most of them are either old or doesn’t hold good anymore.
Here is the exact solution which worked for me :
To do away the error you have to edit your php.ini.
Go to path : C:\wamp\bin\apache\apache2.2.8\bin
find php.ini file
open it
find the line ;extension=php_curl.dll
remove the “;’ from the line, so in the end it will look like this
extension=php_curl.dll
restart apache/wamp and you are good to go.
Let me know if are still facing the problem. Although for sure you shouldn’t after the above steps
Tags: Coding, curl, php
Posted in Coding | 3 Comments »
July 2nd, 2009 at 5:40 pm
I’ve done all these and is still not working
Somebody help
July 5th, 2009 at 8:24 pm
Hi Desmond can you please tell me what all option you tried and still it didnt work?
January 24th, 2010 at 1:40 am
Thanks heaps, worked great.