RE: [PHP-DEV] Windows phpinfo() output
| From: | James Moore | Date: | Thu, 14 Dec 2000 11:08:39 +0000 |
| Subject: | RE: [PHP-DEV] Windows phpinfo() output | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41324@lists.php.net to get a copy of this message | ||
> > > Configuration File (php.ini) Path: php.ini
> >
> > This is correct.. it is looking for the php.ini in the windows
> path, either
> > c:\windows\ or in the same dir as php.exe will work.
> >
> > Why?? It makes sense on windows path scheme, its the same as
> when windows
> > looks for dlls, local dir, then system dir, then windows dir.
>
> The people having problems do not know about this. They look
> at the phpinfo() output and do not find any pathnames listed
> here. If the phpinfo() output listed pathnames, they would
> instinctively do the right thing.
>
> Are the pathnames checked by Windows static or are they dependent
> on some other information (environment variables or similar
> external configuration sources)? Is there a way to retrieve
> the pathnames Windows is actually, really looking at and
> print them?
I might be wrong here but most people find it very difficult to compile on
windows (not that many people have VC or any other compiler) Thus a very
generic build is provided and this is the best way of supporting the
php.ini. If you want to change the path when compileing on windows then you
need to alter config.win32.h to point to the location you want.. Change the
following:
#define CONFIGURATION_FILE_PATH "php.ini"
#define CONFIGURATION_FILE_PATH "<new_path>php.ini"
Other than that I know no real way to get the paths that windows looks at..
I think its .\, %WINDOWS%\ %WINDOWS%\system\, or on WINNT its .\,
%SYSTEMROOT%\ %SYSTEMROOT%\system although Id have to check those on my
WinNT machine.. Maybe we can look at having a #IFDEF WIN32 in there to make
this clearer although I dont think its that unclear myself its just a case
of understanding how windows works.
James
--
James Moore
PHP Quality Assurance Team
jmoore@php.net