Enable cURL on PHP7 windows10 64 bit Apache 2.4

前端 未结 6 1197
孤城傲影
孤城傲影 2020-12-24 15:08

I am using Windows10 64 bit Apache 2.4.25 (Win64) PHP 7.1.0-Win32-VC14-x64

when i try calling curl_init() function, i get an error saying \"Call to undefined functio

6条回答
  •  清酒与你
    2020-12-24 16:07

    Here is what worked for me...

    Env Info

    • WAMP Server version 3.1.9
    • Apache 2.4.39
    • PHP 7.2.18

    Step 1

    From PHP downloads, I got VC15 x64 Thread Safe (2019-May-01 10:48:48) https://windows.php.net/download#php-7.2

    Step 2

    Extracted the zip file and copied /ext/php_curl.dll to C:\wamp64\bin\php\php7.2.18\ext directory (By overwriting)

    Step 3

    Restarted all services

    DONE

提交回复
热议问题