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?

Re: Fatal error: Call to undefined function curl_init() 80 80

You need to install CURL. Check this link

http://www.php.net/manual/en/curl.setup.php

Re: Fatal error: Call to undefined function curl_init() 80 80

Is there a Windows instruction manual for installing CURL?

Re: Fatal error: Call to undefined function curl_init() 80 80
Re: Fatal error: Call to undefined function curl_init() 80 80

Sorry that tutorial doesn't work, the error remains.

Re: Fatal error: Call to undefined function curl_init() 80 80

Bachov Varghese,

That YouTube video now works.

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 (on YouTube video) and it works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.