The Curl function is not enabled by default in php. if you need to use Curl, we need. in ini, remove extensionphp_curl.dll. first, I put php. extens in ini... the Curl function is not enabled by default in php. if you need to use Curl, we need. in ini, remove extension = php_curl.dll.
I first removed the extension = php_curl.dll in php. ini and restarted the apache environment. the following code is prompted when the following function is called:
Error message:Call to undefined function curl_init ()
After reading the relevant articles, I copied three files under the ext directory of PHP: php_curl.dll, libeay32.dll, and ssleay32.dll to the system32 directory of the system, then google found that Windows 7 (x64) has a difference that the built-in php_curl.dll file does not work in a 64-bit Windows 7 environment.
Specific steps:
1. click the wamp icon in the notification bar, find the php_curl option in php-ext, and click Select. wait until the wamp service is restarted.
2. download the repaired php_curl.dll (php5.X/X64 system) file and place it in the wampbinphpphp (version) ext folder.
3. restart the wamp service.
Tip:After so long, it turns out that the php environment we installed is different from the system version. we 'd better select the number of php versions for the number of systems.
Article address:
Reprint at will ^ please include the address of this article!