PHP / How to enable curl

sudo apt-get install curl
sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart OR sudo service apache2 restart
This also works in case of this error:
PHP Fatal error: Call to undefined function curl_init()

No comments:

Post a Comment