Problem: Call to undefined function curl_init()?
Solution: This error occurs when cURL library is not installed on your system or enabled in your PHP installation.
In order to resolve this error, install cURL library.
-
For Linux – Terminal Command :
sudo apt-get install php-curl
- For Windows:
Download cURL library from Official Website
Go to your php.ini file and remove the ; mark from the beginning of the following line:;extension=php_curl.dll
Reference: http://php.net/manual/en/curl.installation.php
Recommended Posts:
- variable === undefined vs. typeof variable === “undefined” in JavaScript
- How to avoid undefined offset error in PHP ?
- Difference between Call by Value and Call by Reference
- JavaScript undefined Property
- How to check empty/undefined/null string in JavaScript?
- What are undeclared and undefined variables in JavaScript?
- How to Replace a value if null or undefined in JavaScript?
- Python - Call function from another function
- How to call some function before main() function in C++?
- JavaScript | Function Call
- How to call PHP function from string stored in a Variable
- How to call function from it name stored in a string using JavaScript?
- How to call PHP function on the click of a Button ?
- Call a parent window function from an iframe
- How to call functions after previous function is completed in jQuery ?
- How to call a function repeatedly every 5 seconds in JavaScript ?
- Scala | Functions Call-by-Name
- Print PHP Call Stack
- What is the difference between call and apply in JavaScript?
- Scala | Methods to Call on a Map | Set-1
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

