php.ini file location

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

php.ini file location

Post by bloodl »

Hi all! I am installing ZEND, and it requires that I locate the php.ini file for it. The problem is that when I did a search, 3 in total appeared in the following locations:
  • PHP5
    WINDOWS
    PROGRAM FILES\PHP
How can I figure out which one to use without attempting the trial and error method?

Cheers,
Doug :drunk:
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: php.ini file location

Post by alex.barylski »

I would edit the one labeled PHP5/php.ini

See if it works...if not...read the docs for the distro you downloaded...somewhere in there it will tell you...

Alternatively you could maybe wait for a while and use PHP a few times and use the INI files whose last accessed date is the latest?
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: php.ini file location

Post by Doug G »

Run phpinfo() and you'll see which ini is being used by your php installation.
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

Re: php.ini file location

Post by bloodl »

Thanks guys, heaps useful!

I truly appreciate it
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

Re: php.ini file location

Post by bloodl »

I got these two:

Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Program Files\PHP\php.ini

Which one would I point Zend to??

I would assume the 2nd one?

cheers,
Doug
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: php.ini file location

Post by Eran »

What is Zend? do you mean Zend Studio?
Zend is the name of the company that developers PHP related products
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

Re: php.ini file location

Post by bloodl »

http://www.zend.com/en/products/guard/optimizer/

I got it figured thanks to previous comments. Thanks for all involved!
Post Reply