php.ini location confusion: (Loaded) Configuration File

This is a discussion on php.ini location confusion: (Loaded) Configuration File within the PHP Language forums, part of the PHP Programming Forums category; Hi, Why does phpinfo() show two locations for php.ini? This is what it says: Configuration File (php.ini) Path: ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2007
Erwin Moller
 
Posts: n/a
Default php.ini location confusion: (Loaded) Configuration File

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
Reply With Quote
  #2 (permalink)  
Old 09-18-2007
C.
 
Posts: n/a
Default Re: php.ini location confusion: (Loaded) Configuration File

On 18 Sep, 12:44, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.com> 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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0