Curl in php does not support solutions. In php, if you configure and install functions, the curl series functions are generally not supported by default. if you want your php environment to support the curl function, you can refer to the following methods to solve the problem. In php, if you configure and install the curl series functions, the curl series functions are not supported by default. if you want your php environment to support the curl function, we can refer to the following method to solve the problem.
Modify your php configuration and remove the semicolon from; extension = php_curl.dll in php. ini;
Restart apache to test whether it works. generally, it is okay. if it still doesn't work, we can
1. set the three files in the PHP folder
Php_curl.dll,
Libeay32.dll,
Ssleay32.dll
Copy to system32;
3. restart apache.
Test
| The code is as follows: |
|
$ Ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, "http://www.bKjia. c0m "); Curl_setopt ($ ch, CURLOPT_HEADER, 1 ); Curl_exec ($ ch ); Curl_close ($ ch ); ?> |
In this way, it is successful.
Bytes. MODIFY...