Apache - Fatal error call to undefined function curl init, Fatal error: Call to undefined function curl_init() in curl.php on line 7

Fatal error call to undefined function curl init

php error message call to undefined function

If you receive the below error message while executing the curl script then make sure that you have enabled the curl module in php.ini file.

Fatal error: Call to undefined function curl_init() in D:\xampp\htdocs\curl.php on line 6

If you get the above error then follow the steps given below to enable curl module.
How to enable curl in xampp

Find php.ini file
D:\xampp\apache\bin\php.ini

Enable curl on your php.ini file by removing the semicolon

;extension=php_curl.dll // disable curl library
extension=php_curl.dll // Enable curl library

Enable curl in XAMPP
  extension=php_curl.dll

Restart your apache server.

That's it you have enabled the curl module on your server.

The topic on Apache - Fatal error call to undefined function curl init is posted by - Naveen

Hope you have enjoyed, Apache - Fatal error call to undefined function curl initThanks for your time

Tech Bluff