This question already has an answer here:
- How to enable cURL in PHP / XAMPP 15 answers
How to enable curl in xampp ?
My PHP twitter application needs curl function. But it is not enabled in XAMPP. how to enable it. I found no options for doing that.
Join Stack Overflow to learn, share knowledge, and build your career.
|
This question already has an answer here:
How to enable curl in xampp ? My PHP twitter application needs curl function. But it is not enabled in XAMPP. how to enable it. I found no options for doing that. |
|||||
marked as duplicate by j08691, Jocelyn, Blazemonger, hjpotter92, Rudi Visser Feb 28 '13 at 19:09This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
|||||
|
|||||
|
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 to enable curl library with XAMPP in Windows: Step 1:Browse and open the following 3 files
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 4:Check your Enjoy using curl() library. |
|||||||||
|
|
It should be available in php.ini file. You need to un-comment the line for curl extension:
|
|||||||||
|
|
For XAMPP on MACOS or Linux, remove the semicolon in php.ini file after extension=curl.so |
|||||||||||||
|
|
You can add any extension (in Wamp and Xampp servers) by removing the semi-colon (;) |
|||
|
|
|
1) C:\Program Files\xampp\php\php.ini 2) Uncomment the following line on your php.ini file by removing the semicolon.
3) Restart your apache server. |
|||
|
|
|
In XAMPP installation directory, open PS: If that doesn't work then check whether |
|||||
|
|
First, make sure you have If XAMPP comes pre-compiled with cURL you may just need to enable the extension in your php.ini file (usually by removing a semicolon at the start of the line which includes the extension). |
|||
|
|