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?
Asked
Active
Viewed 8,519 times
0
-
your php and apache version? – Bhaskar Jain Apr 12 '18 at 05:16
-
I think this is duplicate of https://stackoverflow.com/questions/6382539/call-to-undefined-function-curl-init – Priya Apr 12 '18 at 05:16
-
What PHP version and platform are you using? To make sure it is properly installed, use: extension_loaded('curl') – yakobom Apr 12 '18 at 05:18
-
yes I know but I have followed it. and still keep the error. @Priya – Cresth Apr 12 '18 at 05:26
-
I use php version 7.0 – Cresth Apr 12 '18 at 05:27
1 Answers
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