php.ini location confusion: (Loaded) Configuration File

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Why does phpinfo() show two locations for php.ini?

This is what it says:
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File        : C:\inetpub\php5\php.ini

The 'Loaded Configuration File' is correct, that is where my php.ini is.
I don't have a php.ini in C:\Windows

Why not only show the used (loaded) location?

The box in question: PHP5.2 on IIS7/Vista.
In environment for 'PHPRC', the value 'C:\inetpub\php5'

Erwin Moller

Re: php.ini location confusion: (Loaded) Configuration File

On 18 Sep, 12:44, Erwin Moller
Quoted text here. Click to load it

IIRC you can specify a search path at runtime - presumably this is C:
\Windows on your binary.


Site Timeline