cURL is a PHP extension that allows you to send data from a remote server. You may encounter a fatal PHP error indicating an undefined function curl init if the extension is not installed or configured on your web server.
PHP is unable to locate the curl init function because the extension defining it has not been loaded. The PHP script will be terminated due to a fatal error. To prevent this type of error, make sure the cURL module is loaded before attempting to use it. Also, make sure curl is turned on. Run the following piece of code to see if cURL is enabled in your PHP system.
phpinfo function returns information about PHP's configurations. If a CTRL + F search for "curl" yields no results, your web server may not have loaded the curl extension. If you spot it, look under the cURL heading for the following line:
cURL support: enabled.
View all errors