PHP - Solve the problem that curl extension cannot be opened
Nov 17, 2016 am 11:39 AM1. Problem
Recently, a PHP environment (64-bit Win7 system, Apache24, PHP5.6) was built locally to debug the program. Since the page needs to use curl, the relevant configurations in php.ini are modified.
extension=php_curl.dll extension_dir = "G:/php/ext"
But after restarting Apache, there is still no curl_init function error (Fatal error: Call to undefined function curl_init() in xxxxxx). Use phpinfo() to check and find that the curl function is not turned on.
2, Problem Solved
(1) Copy the four files libeay32.dll, ssleay32.dll, libssh2.dll in the php directory and php_curl.dll in the ext directory to the C:WindowsSystem32 directory Down.
(2) Restart Apache, and then use the phpinfo() function to check that curl has been successfully enabled.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
