Hi Walter,
fyi - you DON'T HAVE TO put PHP.INI into c:\WINNT,
nothing of the like is being compiled anywhere. Where your
systems searches for PHP.INI depends on the mode PHP is 
run, because it always is first searched for in the folder containing 
the _processes_ .EXE file:
In CGI/EXE mode that is the folder PHP.EXE is residing in, but in 
ISAPI/module mode this is the folder containing the web server 
(Apache, IIS, PWS, what ever).
Next it is searched for in %WINDIR% (of whatever name, C.\WINDOWS, 
D:\WINNT, ...), last in c:\PHP4 (this REALLY is hard coded).
-- 
Sven


> -----Ursprüngliche Nachricht-----
> Von:  jsWalter [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Sonntag, 6. Juli 2003 00:01
> An:   [EMAIL PROTECTED]
> Betreff:      [PHP-WIN] Re: Fatal error with 'DB.php'  - solution
> 
> OK, I solved it.
> 
> It seems that I **HAVE TO**, **MUST**, **NO CHOICE** place my php.ini in
> C:\WINNT (for NT and 2k) or PHP will not find it. This is a hardcoded path
> done at compile time.
> 
> So, since no ini file, PHP was running on default values, thus it could not
> find DB.php since the default path there was 'C:\php4\pears'
> 
> So, I copied my php.ini file to C:\winnt, renamed the added php4 to php4x
> (just to hide it to see if this would work), restarted my Apache (since the
> docs tell me that the PHP process that runs with Apache reads this file once
> at Apache startup) and I ran my script.
> 
> It now works.
> 
> Just thought I'd share to the next stubborn person finds this solution.
> 
> Walter
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

Reply via email to