Troubleshooting "Call to undefined function curl_init()"?
Issue:
When integrating Authorize.net payment gateway, developers encounter the error "Call to undefined function curl_init()".
Resolution:
Windows:
Remove the semi-colon (;) from the following line:
;extension=php_curl.dll
Ubuntu 13.0 and Above:
Bundled package:
Install php-curl:
sudo apt-get install php-curl
Debundled package:
Install the debundled package:
sudo apt-get install php5-curl
or
sudo apt-get install php5.6-curl
Restart Apache:
sudo service apache2 restart
The above is the detailed content of How Do I Fix the \'Call to undefined function curl_init()\'?. For more information, please follow other related articles on the PHP Chinese website!