Home >Backend Development >PHP Problem >What to do if php curl exec does not take effect
Solution to the problem that php curl exec does not take effect: 1. Find the "PHP.INI" configuration file in the windows directory of the C drive; 2. Change the absolute path of the ext directory in the php installation directory; 3. Change the " php5/libeay32.dll", "php5/ssleay32.dll" and other files are copied to the "windows/system32/" directory; 4. Restart apache.
The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.
What should I do if php curl exec does not take effect?
Solution to the problem that the local PHP environment does not support curl_exec
When testing the installation of a certain source code, the installation program detected that the local PHP environment does not support curl_exec
After a decisive search, I pieced together some solutions to the problem that the PHP environment does not support curl_exec, and solved the problem through my own actual operations.
The following is the summary method after my own operation:
1. Find the PHP.INI configuration file in the windows directory of the C drive, open it with a PHP editor, and find extension_dir = “../ ", change it to the absolute path of the ext directory in your PHP installation directory, such as: extension_dir = "C:/AppServ/php5/ext".
2. Find the extension=php_curl.dll line in the PHP.INI configuration file and remove the semicolon ";" in front of it.
Save and close the php.ini file.
3. Copy the four files php5/libeay32.dll, php5/ssleay32.dll, php5/php5ts.dll, php5/ext/php_curl.dll to the windows/system32/ directory.
Restart apache…..
Open the program installation page and you can see that the modification has been successful.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if php curl exec does not take effect. For more information, please follow other related articles on the PHP Chinese website!