Apache 2.4, php-5.6.30 under win10
Call to undefined function curl_ init()。
1. Confirm extension_ Dir = “PHP extended directory”
2. Confirm extension = PHP_ The comment of curl.dll has been removed, and PHP does exist in the EXT directory_ curl.dll。
If curl still doesn’t work
The reason is that libeay32.dll, ssleay32.dll and libssh2.dll, which curl depends on, cannot be loaded. These three files are in the PHP installation directory
Many people on the Internet say that as long as libeay32.dll and ssleay32.dll are used, I can’t test them. If curl is not turned on, libssh2.dll is still needed
Method 1: copy them to the bin directory of Apache, restart Apache, and start curl of PHP successfully
Method 2: add the PHP installation directory to the environment variable, restart Apache, and succeed
PS: I have tried these two methods
Add in Apache’s configuration file httpd.conf
LoadFile "D:/wamp/php-5.6.30/php5ts.dll"
LoadFile "D:/wamp/php-5.6.30/libeay32.dll"
LoadFile "D:/wamp/php-5.6.30/ssleay32.dll"
LoadFile "D:/wamp/php-5.6.30/libssh2.dll"
, test result: invalid