Enable cURL on PHP7 windows10 64 bit Apache 2.4

前端 未结 6 1188
孤城傲影
孤城傲影 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 15:49

    I fixed it by:

    1)Edit php.ini file Enable( uncomment) php_curl.dll and php_openssl.dll extensions

    2)go to c:/php7/

    Copy libssh2.dll into c:/apache24/bin folder.

    3) test by: curl_test.php

    installed on this server";
      } else {
      echo "cURL is NOT installed on this server";
    }
    ?>
    

提交回复
热议问题