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: , ,
Posted in Coding | 3 Comments »

3 Comments to “Fatal error: Call to undefined function curl_init()”

  1. Desmond Says:

    I’ve done all these and is still not working
    Somebody help

  2. Mega Champ Says:

    Hi Desmond can you please tell me what all option you tried and still it didnt work?

  3. Michelle Says:

    Thanks heaps, worked great.

Leave a Comment