Home>Article>Backend Development> How to install curl extension in php under win7
How to install the curl extension in PHP under win7: 1. Edit the php.ini configuration file and enable the extension=php_curl.dll option; 2. Copy the libeay32.dll file to the system32 directory; 3. Restart apache.
The operating environment of this article: windows7 system, php7, thinkpad t480 computer.
The specific steps to install the curl extension for PHP under Windows 7 system:
1. Edit the php.ini configuration file and enable extension=php_curl .dll option
Remove the semicolon;
before;extension=php_curl.dll
in php.ini
2. Move the libeay32.dll, ssleay32.dll, and libssh2.dll files under the php folder into thewindows/system32
, orwindows/syswow64
folder;
3. Restart Apache.
Use the phpinfo() function to return information about PHP configuration. You can see:
ok, the curl extension is installed successfully!
Recommended learning:php training
The above is the detailed content of How to install curl extension in php under win7. For more information, please follow other related articles on the PHP Chinese website!