Re: dirname(__FILE__)
| From: | Stig S. Bakken | Date: | Thu, 17 Oct 2002 15:13:35 +0000 |
| Subject: | Re: dirname(__FILE__) | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10108@lists.php.net to get a copy of this message | ||
On Wed, 2002-10-16 at 23:48, Martin Jansen wrote:
> On Wed Oct 16, 2002 at 07:3322PM +0200, Stig S. Bakken wrote:
> > 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?
>
> I'm actually a bit afraid about the performance impact it might have
> to have dirname(__FILE__) calls all around the place. The probably
> best solution would be to have a new built-in constant (like
> __BASEDIR__), but this would force every PEAR user to update to the
> version of PHP that has introduced this feature ...
Maybe someone can add information to the fray by actually comparing
performance with and without dirname?
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb