"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

Reply via email to