First step: In the php.ini configuration file, Extension=php_curl.dll the preceding semicolon (;) remove
Step Two: Locate Extension_dir to configure the extended directory Extension_dir = "C:/amp/php/ext"
Step three: Restart Apache in effect
Many times this does not turn on curl, which is handled in the following way
1 Copy the file under PHP libeay32.dll,libssh2.dll,ssleay32.dll three files to Windows/system32
2 Copy the file Php_curl.dll under Php/ext to Windows/system32
3 Copy the file Php_curl.dll under the Php/ext to the Apache/bin directory (if no libeay32.dll is copied in)
(If you've configured these two items, you can skip it and remember to restart Apache)
4 in the php.ini configuration file, Extension=php_curl.dll the preceding semicolon (;) remove
5 Find Extension_dir to configure the extended directory Extension_dir = "C:/amp/php/ext"
6 Restart Apache in effect
Find a lot of information, have not solved, finally found a solution on the official website.
http://php.net/manual/zh/curl.installation.php
The reply of the Great God abroad:
I had to also also copy Libssh2.dll into my Apache24 folder for this to work with my PHP 5.6.2 installation. So altogether I had to do the following:
Move to Windows\System32 folder:
Libssh2.dll, Php_curl.dll, Ssleay32.dll, Libeay32.dll
Move to Apache24\bin folder
Libssh2.dll
Uncomment Extension=php_curl.dll
This article is from the IT technology blog, so be sure to keep this source http://linuxubuntu.blog.51cto.com/4964714/1913467
PHP to turn on curl