Call to undefined function curl_init() error

saurav picture saurav · Apr 24, 2015 · Viewed 41.6k times · Source

I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP.

I have come across this Call to undefined function curl_init() error.

I removed the ; preceeding extension=php_curl.dll in php.ini .Restarted the Apache server but still getting the same error.

Any hint where I am going wrong?

Answer

nico picture nico · Aug 11, 2015

I had the same issue and after hours, I found a message here :

http://php.net/manual/curl.installation.php

which says, "Upgrading to php 5.6.9 on Windows 7 x64 cURL no longer is recognized. No errors on server start package just not available and didn't show in phpinfo.php. deplister.exe was ok I fixed coping the following list files from php folder (in my case D:\xampp\php) libeay32.dll, libssh2.dll, ssleay32.dll to c:\xampp\apache\bin (or your apache\bin path), restart Apache and works fine, Apache's libraries were outdated."

It worked for me.

Not easy to find, right ? :-)