Solution to the problem that php cannot use curl: 1. Open the php.ini configuration file and uncomment the [extension=curl] option; 2. Move the libssh2.dll file in the php directory to the apache installation directory bin directory; 3. Finally, restart apache.
First remove the semicolon before extension=curl in the php.ini configuration file;
(Recommended tutorial: php Graphic tutorial)
Then put the libssh2.dll file in the php directory into the bin directory of the apache installation directory; (I am using wamp, use curl prompt not define, copy this file It will be solved after getting to apache)
(Video tutorial recommendation: php video tutorial)
Finally restart apache.
The above is the detailed content of What to do if php cannot use curl. For more information, please follow other related articles on the PHP Chinese website!