How to Install CURL library for PHP in Ubuntu box
时间:2010-10-10 来源:lei1016cn
If you use PHP, you may need to use cURL, which is one of the most popular extension. PHP CURL functions are available through the use of libcurl, a library created by Daniel Stenberg, and allow you to connect and communicate with web servers using many
different types of protocols.
Assume you have already setup LAMP. To install or setup cURL on your Linux machine like Ubuntu, run the following line of shell command in your terminal.
1: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Now you have PHP cURL installed, the next thing you need to do is to restart apache2, run the following command in your terminal:
1: sudo /etc/init.d/apache2 restart
相关阅读 更多 +