Re: Q on echo phpinfo() ;
| From: | Philip Olson | Date: | Sat, 05 Jul 2003 19:43:47 +0000 |
| Subject: | Re: Q on echo phpinfo() ; | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154075@lists.php.net to get a copy of this message | ||
You may set the location of php.ini by using the PHPRC
environment variable or during ./configure use the
--with-config-file-path directive. Maybe you should
just copy a php.ini into the directory PHP is looking for
it in, which appears to be C:\WINNIT. If PHP was actually
reading a php.ini, you would have instead seen it as
C:\WINNIT\php.ini as opposed to just a directory path. So
because no php.ini is being read, PHP is using all default
values as per a stock php.ini-dist.
http://www.php.net/manual/en/configuration.php
http://www.php.net/manual/en/faq.installation.php#faq.installation.phpini
Regards,
Philip
On Sat, 5 Jul 2003, jsWalter wrote:
> I ran this as a script from my Apache and it gave me a beautiful web page
> just full of wonderful information!
>
> But I have a question on just 1 item...
>
> Configuration File (piping) Path C:\WINNIT
>
> How does this value get set?
>
> My PHP is installed at 'G:\etc\php'
>
> My php.ini is there as well.
>
> The paths are set (in that ini file) as...
>
> include_path = ".;G:\etc\php\extensions;G:\etc\php\pear"
>
> extension_dir = "G:\etc\php\extensions"
>
> Even My Apache is told to look there as well...
>
> # Windows Win32 version
>
> LoadFile "/etc/php/gnu_gettext.dll"
>
> LoadModule php4_module "/etc/php/sapi/php4apache2.dll"
>
> Action application/x-httpd-php "/etc/php/php.exe"
>
> ScriptAlias /php/ "/etc/php/"
>
> (pls don't comment about there being volume letters missing to this block,
>
> I want to focus on the issue of a path being defined from out of the blue)
>
> Is this being hard coded somewhere?
>
> If so, then why does my PHP work at all?
>
> I have nothing that belongs to PHP in the system directory.
>
> Well, not completely true.
>
> PEAR installed a pear.ini in the system directory itself (I wish it didn't,
>
> but my PEAR not working properly is a different issue.)
>
> Nothing I've read from the web or the documentation has given me any
> understand on how this is set and why PHP file are needed in the location
> that the says to place them.
>
> I guess, this is a question for the folks who wrote the executables for
> Windows.
>
> Thanks for any help and enlightenment.
>
> Walter
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>