How to enable cURL in PHP / XAMPP


How do I enable cURL in PHP?

How to enable curl in xampp ?

Default Asked on June 18, 2020 in Programming.
Add Comment
1 Answer(s)
Best answer

You have to modify the php.ini files in your xampp folder.

Three files in Three different places need to be changed.

Follow the following steps Show in video to enable curl library with XAMPP in Windows:

Step 1:

Browse and open the following 3 files

C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini

Step 2:

Uncomment the following line in your php.ini file by removing the semicolon (;).


After that it will look something like something below-


Step 3:

Restart your Apache server.

Step 3:

Check your phpinfo() to see whether curl has properly enabled or not.

Enjoy using curl() library.

Default Answered on June 20, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.