Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to enable curl in xampp

Tags:

php

xampp

I am facing this error given below

Fatal error: Call to undefined function curl_init() in E:\xampp\htdocs\new\functions.php on line 11

I have already made change in php.ini. I have removed the semicolon in front of

;extension=php_crack.dll
extension=php_curl.dll
;extension=php_cvsclient.dll

and after that restart the xampp but still facing same problem.Is there any other change need.Please let me know if any I shall be very thankful to you all

like image 810
Chauhan Avatar asked Dec 04 '22 23:12

Chauhan


2 Answers

If you are using XAMPP, check these two locations:

  • C:\xampp\xampplite\apache\bin\php.ini
  • C:\xampp\xampplite\php\php.ini

For the line ;extension=php_curl.dll.

Remove the semicolon, save both files, restart your Apache and then run it again. I hope it will work.

like image 57
Shakir Avatar answered Dec 10 '22 10:12

Shakir


In Xampp i've found php.ini at this location:

C:\xampp\php\php.ini

I've removed ";" from ";extension=php_curl.dll" line. It works fine.

like image 40
Ashvintest Gargav Avatar answered Dec 10 '22 11:12

Ashvintest Gargav