Call to undefined function curl_init() - with WAMP

情到浓时终转凉″ 提交于 2019-11-28 06:18:25
Chu Khanh Van

WAMP 2.2 comes with a wrong cURL extension. You should download the fixed file from the following link:
http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/. Then replace the file php_curl.dll into /php5.4.3/ext/.

Click on WAMP Icon > PHP > PHP Extensions > check php_curl.

If it's checked uncheck it, check it again, and Restart all services. Should work.

If it still not working reinstall WAMP. Simple as it is.

For me this did the trick: http://www.phpmind.com/blog/2011/02/how-to-enable-curl-in-wamp/

1) Close WAMP (if running)

2) Navigate to WAMP\bin\php(your version of php)\

3) edit php.ini

4) Search for curl, uncomment extension=php_curl.dll

5) Navigate to WAMP\bin\Apache(your version of apache)\bin\

6) edit php.ini

7) Search for curl, uncomment extension=php_curl.dll

8 ) Save both

9) Restart WAMP

Vinay Pandya

I have got this same error.

Solution: Click on wamp server, than select -> php -> php extension. Then check PHP_cURl() and wamp server is automatically restarted. Try again and the error is gone.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!