Re: [PHP] Q on echo phpinfo() ;

2003-07-05 Thread jsWalter
"Philip Olson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> You may set the location of php.ini by using the PHPRC
> environment variable or during ./configure use the
> --with-config-file-path directive.

So, I take it that this is a setting you use during compile time.
So, to fix this, as not to mandate the use of 'C:\winnt' I could just
recompile everything.
mmm.

> Maybe you should just copy a php.ini into the directory PHP
> is looking for it in, which appears to be C:\WINNIT.

I was really hoping not to have to do that. It is so *Microsoft* in
implementation. I was really hoping that something that came from outside
the DarkSide would not be tempted.

> 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.

OK! Now I see. PHP is using default values since it can't "see" a php.ini
file where it thinks it should be, the C:\WINNT directory.

Well, I copied my php.ini into C:\winnt removed my "fix" for DB.php,
restarted my Apache and sure enough, phpinfo() shows C:\WINNT\php.ini and
DB.php no longer returns an error!

:( [why the sad face? It thought you said it now works?]

The sad face is because I am forced to place files in the windows directory.

There was nothing I could do about Apache and it's use of the Registry, now
it looks like I'm forced to do things "The Microsoft Way" with PHP. At least
Perl is set up without using Microsoft's mandates.

Thanks for the info Philip. I appreciate it. Now things are clearer. PHP now
works, but I'm not happy, but that's not relevant. I'm always causing
trouble.

Now I 'need' to see if I can find someone who can re-compile this for me (no
I don't have access to any of these tools. I'm learning PHP now since I was
told that is what I need to add to my skill set if I want to get a job,
again. I got laid off 6 months ago after 7 years as an Lead Internet
Technologies Architect. PHP was just something I never had to deal with. The
fortune 1000 didn't "want" that, so, I didn't do it. That'll teach me!)

Anyway, Thanks Philip.

Walter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Q on echo phpinfo() ;

2003-07-05 Thread Philip Olson

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
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Q on echo phpinfo() ;

2003-07-05 Thread jsWalter
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