Install php_curl extension in the window when phpcurl extension is enabled. 1. find php. modify extensionphp_curl.dll in ini and remove the semicolon. Note that php is in phpinfo. the php_curl extension under ini pathpattern tulinux supports 1. create a test in the web server directory (varwww in Ubuntu. p php curl extension enabled
Install php_curl extension support in Windows
1. find php. ini
Modify extension = php_curl.dll and remove the semicolon;
Note the path of php. ini in phpinfo ().
Support for php_curl extension in ubuntu linux
1. create a test. php file in the web server directory (usually/var/www in Ubuntu ).
2. edit the file and type the following code: phpinfo ();
3. Save the file
4. open your browser and browse the webpage. (For example, http: // localhost/test. php)
5. search for "curl" to see if curl has been installed. If it is not found, it is definitely not installed. to install it, please refer to the following.
The installation method is simple. you only need one command. (Here we choose to install apt-get directly, because it is much easier than self-compiling, and you do not need to configure anything yourself)
# Sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Congratulations, PHP5 cURL has been installed. Remember to restart the Apache server
# Sudo/etc/init. d/apache2 restart
If the problem persists, edit your php. ini file (my file is/etc/php5/apache2/php. ini) and add a line at the end:
Extension = curl. so
Save the file and restart the Apache server.