Call to undefined function curl_init() - with WAMP

后端 未结 3 2029
慢半拍i
慢半拍i 2020-12-05 07:10

I\'m trying to get cUrl to work, and I\'m stumped.

I\'ve uncommented extension=php_curl.dll in the php.ini file and checked that php_

相关标签:
3条回答
  • 2020-12-05 07:26

    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

    0 讨论(0)
  • 2020-12-05 07:45

    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/.

    0 讨论(0)
  • 2020-12-05 07:45

    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.

    0 讨论(0)
提交回复
热议问题