0

why I always get Uncaught Error: Call to undefined function curl_init(). I have set extension:php_curl in php.ini and install php-curl too. but not working. . everyone help me?

Cresth
  • 11
  • 2
  • 5

1 Answers1

9

Install curl

sudo apt-get install php-curl 

if you are using php 7

sudo apt-get install php7.0-curl

and restart server

sudo service apache2 restart
Rp9
  • 1,955
  • 2
  • 23
  • 31