Home >Backend Development >PHP Problem >Detailed explanation of php curl configuration method under windows
Installation method of php curl under windows: first find and open the "php.ini" file; then delete the semicolon in ";extension=php_curl.dll"; finally, change the "libeay32. dll" and other files into system32.
Recommended: "PHP Video Tutorial"
Configuring php's curl extension in Windows environment
When installing wordpress/zen-cart/magento, I was prompted to open the curl extension, so I opened my php.ini file, found the line ";extension=php_curl.dll", and removed the semicolon in front of it. , the result still doesn’t work, I wrote a piece of code myself, called the curl_init() function to test, the error message is as follows:
Fatal error: Call to undefined function: curl_init()
It seems that the curl extension is still not open, carefully check the PHP manual [XVIII . CURL, Client URL Library Functions] section, it turns out that to open the curl extension in the Windows environment, you also need to copy the two files libeay32.dll and ssleay32.dll to the Windows system directory. The problem is found. Copy these two files to C:/ Windows/System32/ directory, restart Apache, done!
1. Remove the semicolon before extension=php_curl.dll in php.ini;
2. Change libeay32.dll, ssleay32.dll, libssh2.dll in the php folder Move the file into the windows/system32, or windows/syswow64 folder;
The above is the detailed content of Detailed explanation of php curl configuration method under windows. For more information, please follow other related articles on the PHP Chinese website!