-2

Manually installed php. But curl not working. Settings

;extension=php_bz2.dll
    extension=php_curl.dll
    extension=php_fileinfo.dll
    extension=php_gd2.dll
   ;extension=php_gettext.dll

my code:

if  (in_array  ('curl', get_loaded_extensions())) {

        echo "CURL is available on your web server";

    }  else {
        echo "CURL is not available on your web server";
    }
?>

Ans: CURL is not available on your web server

Jishin AV
  • 22
  • 6

1 Answers1

0

Here are the steps from obtaining PHP to enabling cURL:

Download PHP (these steps tested with 7.1) Add PHP folder to PATH environment variable Update php.ini file with absolute path for extension directory and uncomment php_curl.dll and php_openssl.dll extensions Update httpd.conf (Apache config file) to load php7apache2_4.dll module in PHP folder and set PHPIniDir to PHP directory Copy libeay32.dll libssh2.dll and ssleay32.dll into apache/bin (replace existing) Restart Apache.

Enable cURL on PHP7 windows10 64 bit Apache 2.4

Jishin AV
  • 22
  • 6