|
Posted by coolsti on 01/13/08 15:31
On Sat, 12 Jan 2008 10:30:10 -0800, Jez wrote:
> IIS6 - Windows 2003 SP2.
> PHP 5.2.5 Manual install using php5isapi.dll
>
> PHP seems to be installed and working OK.
>
> Yet I have a slight issue !!
>
> I've created a page (test.php) with just this in it :
>
> <?php
> phpinfo();
> ?>
>
> When run via my browser the php.ini settings are shown as:
>
> Configuration File (php.ini) Path C:\WINDOWS
> Loaded Configuration File (none)
>
> Yet if I launch the test.php page via a command line:
>
> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>
> Configuration File (php.ini) Path => C:\WINDOWS
> Loaded Configuration File => C:\WINDOWS\php.ini
>
> The php.ini is located in C:\Windows
>
> Why the difference ??
> Will this cause me any problems ?
>
> Thanks
I do not know if this will solve your problem but it might. I work with
PHP on Linux, not windows. Recently I had a need to use PHP from the
command line in addition to accessing PHP scripts via the apache server. I
had some difficulties in getting this set up, as it required some things
to be installed which were not installed up to that point.
In all this fiddling about, I found out that for some situations, perhaps
depending on the platform or perhaps the operating machine, by default the
php.ini file which is used by the Command Line Interpreter for PHP is not
the same as the php.ini file used by the apache server.
Perhaps this is also the case on Windows? You might indeed be accessing
two different php.ini files. Or at least your system is expecting there to
be two different ones.
Steve, Denmark
Navigation:
[Reply to this message]
|