Having developed mostly in a MAMP environment, I have taken many things for granted. Today, while working with WAMP, I was pleasantly surprised by a “Fatal error: Call to undefined function: curl_init()”.
It took a few extra steps to get cURL working. WAMP comes preinstalled with many extensions, including cURL, but for some reason many are not enabled by default and enabling php_curl from within the WAMP menu did not solve my problem.
How to enable libcurl in WAMP
- Find and open c:\wamp\bin\php\php5.2.6\php.ini
- Uncomment ;extension=php_curl.dll
- Do the same for c\:wamp\bin\apache\apache2.2.8\bin\php.ini
- Restart WAMP and happy coding.