Re: dirname(__FILE__)
| From: | Stig S. Bakken | Date: | Wed, 16 Oct 2002 17:33:22 +0000 |
| Subject: | Re: dirname(__FILE__) | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10086@lists.php.net to get a copy of this message | ||
On Wed, 2002-10-16 at 18:55, Wolfram Kriesing wrote:
> 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?
Right now, dirname(__FILE__) seems to be the only solution that works.
Does it solve all the problems of people trapped in PHP environment
where they can't change php.ini?
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb