Install cURL with XAMPP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mck.workman
Forum Newbie
Posts: 5
Joined: Tue Jan 03, 2012 4:57 pm

Install cURL with XAMPP

Post by mck.workman »

Hey guys!

I tried installing cURL by uncommenting the cURL in both php.ini (one was INI-DEVELOPMENT and the other was INI-PRODUCTION) files under XAMPP\php. I restarted and ran <?PHP phpinfo();?> to test but am geting nothing...I have XAMPP version 2.5.

Why isn't it working?

Thank you!
McK
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Install cURL with XAMPP

Post by social_experiment »

Edit the php.ini file inside apache/bin/
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
mck.workman
Forum Newbie
Posts: 5
Joined: Tue Jan 03, 2012 4:57 pm

Re: Install cURL with XAMPP

Post by mck.workman »

That is the weird thing--I don't have one. I only have xampp\php\php.ini (INI-DEVELOPMENT) and xampp\php\php.ini (INI-PRODUCTION). I uncommented curl from both of these. I ran phpinfo() and saw that the Loaded Configuration File is indeed here ( C:\xampp\php\php.ini ) but why are there two and why after editing both and restarting can I not run <?PHP phpinfo();?>?

Thank you!
mck.workman
Forum Newbie
Posts: 5
Joined: Tue Jan 03, 2012 4:57 pm

Re: Install cURL with XAMPP

Post by mck.workman »

Okay. There is another ini file in xxamp\php also called php.ini that comes up when you search for "php.ini" in the windows search bar as the first file but it doesn't say ini like the others until you right click and look at its properties. THIS is the file that you uncomment. Then it works. Thanks.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Install cURL with XAMPP

Post by social_experiment »

In the latest version of xampp (1.7.something) the 'working' php.ini is inside the php folder; not sure what was the purpose of the earlier version's multiple php.ini files.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply