Home >Backend Development >PHP Problem >What to do if php cannot use curl

What to do if php cannot use curl

王林
王林Original
2020-08-13 14:36:284417browse

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.

What to do if php cannot use curl

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn