RE: [Phplib-users] Installation in hosted environment
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@if...> - 2002-10-08 18:39:34
|
> I see reference in the docs and archives about several different > installation methods. I understand the includes in the php.ini and > .htaccess, but Richard refers to the $_PHPLIB method as being more > efficient. I cannot find a description of what that is. Can > anyone expound on that? In your prepend file, the first bit is setting $_PHPLIB["libdir"] to the path to installed PHPLib (e.g. /usr/local/phplib-7.x/php/) which is then appended to all PHPLib include statements. <soapbox> This should define a constant rather than a variable - nobody's going to switch between PHPLib versions midway through a script. </soapbox> <soapbox> I've never really liked relying on the include path - why waste runtime cycles on a production server looking for files in half a dozen directories when you should know exactly were they are? I have embraced this concept to set a few constants holding root-relative paths to my document root, personal library and PHPLib. </soapbox> Layne Weathers Ifworld Inc. |