RE: [PHP-WIN] PHP 4.2 - hard-coded paths

From: Date: Tue, 23 Apr 2002 14:53:45 +0000
Subject: RE: [PHP-WIN] PHP 4.2 - hard-coded paths
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13244@lists.php.net to get a copy of this message
> I just installed Apache 2 and PHP 4.2. It does work and phpinfo() brings up > indications of Apache 2 and the correct PHP version. However, the paths to > resources on my system seem to be hard-coded within the php4ts.dll. The path > to php.ini indicates c:\winnt (which has been hard-coded in the binary > releases for a while, that's another issue). However, it isn't picking > anything up from c:\winnt\php.ini. Instead, paths to extensions, the > include_path, session temp path, etc. all have values in phpinfo(), but not > the values in ANY php.ini on my system. After opening php4ts.dll in a text > editor, all of those paths are in there in clear text. Was this hard-coding > intentional in the 4.2 binaries? The new way of doing things? I'd rather not > have to recompile on Windows (the whole Visual C++ requirement takes the > "free" out of PHP), but will have to if it's the only way to configure > paths. I know shit and nothing about php - and even less about the source, but assuming it is hard coded just because you found some string in there isn't that to advance things a little bit to fast? I do uses to hard coded things in my programs myself - A.K.A. default values, but this doesn't implies that these can not be dynamical altered. Oki? //Anders

« previous php.windows (#13244) next »