curl - Call to undefined function curl_init()
Posted by: allenbrown (---.6-2.cable.virginmedia.com)
Date: September 29, 2011 11:50AM

To recap, I am using WampServer 2.1e 32bit on Win7 with Apache 2.2.17 but with PHP 5.2.6 to align with my hosting company.

Now trying to run some existing programs, I have hit a curl error. I have made sure php_curl is checked on the list of extensions but I get the error:

Fatal error: Call to undefined function curl_init() in ...

This is a utility program written in PHP so I'm running it from the command line using the path of the php-win.exe in WAMP's folder structure. So Apache isn't involved here.

Any suggestions?

Options: ReplyQuote
Re: curl - Call to undefined function curl_init()
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: September 29, 2011 11:56AM

make sure the extention for curl is enabled in php..

for websites > left click wamp> php> php.ini> remove ; from ";extention = extension=php_curl.dll"

if your using php from the cli then you will need to open the folder >

c:\wamp\bin\php\phpX.X.X\php.ini and remove ; from ";extention = extension=php_curl.dll"


Restart Wamp after either change.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: curl - Call to undefined function curl_init()
Posted by: allenbrown (---.6-2.cable.virginmedia.com)
Date: September 29, 2011 12:17PM

Excellent Steve - many thanks.

The semi-colon was already removed from the php.ini accessible through the WAMP interface but it was still present in c:\wamp\bin\php\phpX.X.X\php.ini. When I removed it, the PHP script ran just fine.

Options: ReplyQuote
Re: curl - Call to undefined function curl_init()
Posted by: gauravin2007 (122.15.2.---)
Date: July 10, 2018 08:58AM

Hi,

Even I tried everything that is in the thread. However, it is not working in WAMP. Still getting an error

"Fatal error: Call to undefined function curl_init() in"

I have changed the Php.ini File in WAMP/bin/PHP/PHP 5.3.4/Php.ini

The same I have changed in Apache as well .

Please advice.

Options: ReplyQuote
Re: curl - Call to undefined function curl_init()
Posted by: RiggsFolly (Moderator)
Date: July 10, 2018 09:42AM

Hi,

Please can you start a new thread. This one os 7 years old

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, you can't reply to this topic. It has been closed.