php.ini location confusion: (Loaded) Configuration File

php.ini location confusion: (Loaded) Configuration File

am 18.09.2007 13:44:04 von Erwin Moller

Hi,

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'


Regards,
Erwin Moller

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

am 18.09.2007 17:14:54 von colin.mckinnon

On 18 Sep, 12:44, Erwin Moller
wrote:
> Hi,
>
> 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'
>
> Regards,
> Erwin Moller

IIRC you can specify a search path at runtime - presumably this is C:
\Windows on your binary.
See http://www.php.net/manual/en/configuration.php

C.