Call to undefined function curl_init() error in wamp 2.2

前端 未结 9 1897
悲&欢浪女
悲&欢浪女 2020-12-05 02:21

I am having below error when I try to implement google and facebook authentication in windows 7 using wamp server.

Fatal error: Call

9条回答
  •  旧时难觅i
    2020-12-05 03:10

    When using WAMP..

  • You should have one file php.ini in the main PHP directory
  • In the php.ini enable the extension extension=php_curl.dll, by removing the ; char
  • The extension_dir must look like this example: extension_dir = "D:\AMP\PHP\ext\", so not a relative path
  • You need to restart Apache server only once. No need to restart it many times
  • Just make sure, you have the php_curl.dll in the ext directory
提交回复
热议问题