Pramod Pramod - 10 months ago 51
PHP Question

Call to undefined function curl_init().?

Possible Duplicate:

curl_init() function not working

When i am going to implement payment gateway. However, I got this error:

Call to undefined function curl_init()

Please let me know what is wrong in it.


Go to your php.ini file and remove the ; mark from the beginning of the following line:


ubuntu 13.0 and above, simply use the debundled package. In a terminal type the following to install it and do not forgot to restart server.

sudo apt-get install php-curl

Or if you're using the old PHP5

sudo apt-get install php5-curl