Re: dirname(__FILE__)

From: Date: Wed, 16 Oct 2002 16:55:07 +0000
Subject: Re: dirname(__FILE__)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10083@lists.php.net to get a copy of this message
Lukas Smith wrote:
Hi, I want to once more start a little discussion about how to include files in pear packages. I for one intent to distribute all PEAR packages that I use as part of my application because I don’t want my system to break when an admin updates a pear package to a version that breaks BC etc. Therefore I would really welcome if people would use dirname(__FILE__) in their includes in order that packages don’t have to be in the include path.
i think dirname(__FILE__) is a good solution. the only reason why i for example avoided it until now was that i dont know which effect it has on performance. may be some expert step forward and tells us :-) i also got a lot of mails from people who have problems with the includes inside the files, dirname(__FILE__) would solve it all! so what do the pear-developer say about it? -- Wolfram .. translating template engine .... http://sf.net/projects/simpletpl .. authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#10083) next »