RE: [Phplib-users] Installation in hosted environment
Brought to you by:
nhruby,
richardarcher
From: Rob H. <rob...@ws...> - 2002-10-08 19:20:58
|
Agreed, but his statement was that he did not want to append 60K of unneeded code, insinuating that there was a way of making it findable as needed. I didn't know if I was COMPLETELY missing something. Also, this does not take the place of use of the search path because in a hosted environment one often does not know where they are installed. The system admin sets the search path to the root of your app, then it is up to you to take it from there. Agreed that it makes you not have to search the paths that you may need in your app... Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: Layne Weathers [mailto:la...@if...] > Sent: Tuesday, October 08, 2002 2:54 PM > To: rob...@ws...; 'phplib-users' > Subject: RE: [Phplib-users] Installation in hosted environment > > > > 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. > > |