curl_init php error solution: first remove the "extension=php_curl.dll" comment in the "php.ini" file; then configure the ext directory; finally put "libssh2.dll" into "apache/ bin" directory and restart.
Recommended: "PHP Video Tutorial"
1. First, in the php.ini file Remove the extension=php_curl.dll comment, as shown in the figure below:
2. Configure the ext directory, which requires an absolute path, extension_dir = "D:/InstallFile/php-5.6. 9-Win32-VC11-x64/ext", as shown in the figure below:
3. There need to be libssh2.dll, ssleay32.dll, libeay32 in the apache/bin directory .dll. Since mine lacks libssh2.dll, I need to download one from the Internet, put libssh2.dll in the apache/bin directory, and then restart apache.
The above is the detailed content of How to solve curl_init php error reporting problem. For more information, please follow other related articles on the PHP Chinese website!