Method 1 (passed the test) has built-in php_curl.dll. In the ext directory, this DLL is used to support SSL and zlib.
Find extension=php_curl in php.ini .dll, remove the previous comment.
Set extension_dir=c:phpext, and when refreshing the PHP page, an error occurs, saying that the module php_curl.dll cannot be found.
Copy php_curl.dll to windowssystem32, still the same error.
I searched online and found that I need to copy:
libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll
to the system32 directory and restart apache.
Method 2 can also be tried:
This php_curl.dll depends on two files (ssleay32.dll and libeay32.dll). If these two files are not configured correctly, you will be prompted to find them. Without this dynamic library, these two files are under the php directory.
Solution: Configure it in Apache's httpd.conf file:
LoadFile "D:/webserver/php/ssleay32.dll"
LoadFile "D:/webserver/php/libeay32.dll"
Then restart the apache service and it will be ok.