Saturday, September 14, 2019

how to enable curl in php at lunux (ubuntu) server

sudo apt-get install php7.3-curl

open /etc/php/7.3/apache2/php.ini

uncooment following line:

extension=curl

Restart apache:
sudo /etc/init.d/apache2 restart

put following line in your php file and execute in web browser

echo 'Curl: ', function_exists('curl_init') ? 'Enabled' : 'Disabled';
Some examples of perl call:



No comments:

Post a Comment