PHP - Fatal error: Call to undefined function curl_init()
Fatal error: Call to undefined function curl_init()
Resolve for Windows:
1. Open "php.ini" (AppServ Apache Server -> Start Menu -> All Programs -> AppServ -> Configuration Server -> PHP Edit the php.ini Configuration File)
2. Find the text ";extension=php_curl.dll"
3. Remove "semi-colon" at the first of the text, the text will be "extension=php_curl.dll"
4. Save the file and restart Apache Server
------------------------------------------------------------
If the error is not solve, please try this solution (Reference to Windows7).
1. Right click on "My Computer" -> Properties -> Advanced system settings
2. Select "Advanced Tab" -> Environment Variables -> System Variables
3. Choose "Variable Path" -> Click Edit
4. Append path of your PHP folder in the current string example. "C:\AppServ\php5;"
5. Click "OK" and restart your computer
It's work for me. Hope this solution will help you guys.
Resolve for Windows:
1. Open "php.ini" (AppServ Apache Server -> Start Menu -> All Programs -> AppServ -> Configuration Server -> PHP Edit the php.ini Configuration File)
2. Find the text ";extension=php_curl.dll"
3. Remove "semi-colon" at the first of the text, the text will be "extension=php_curl.dll"
4. Save the file and restart Apache Server
------------------------------------------------------------
If the error is not solve, please try this solution (Reference to Windows7).
1. Right click on "My Computer" -> Properties -> Advanced system settings
2. Select "Advanced Tab" -> Environment Variables -> System Variables
3. Choose "Variable Path" -> Click Edit
4. Append path of your PHP folder in the current string example. "C:\AppServ\php5;"
5. Click "OK" and restart your computer
It's work for me. Hope this solution will help you guys.