Re: dirname(__FILE__)
| From: | Martin Jansen | Date: | Wed, 16 Oct 2002 21:48:51 +0000 |
| Subject: | Re: dirname(__FILE__) | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10090@lists.php.net to get a copy of this message | ||
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 ...
--
- Martin Martin Jansen
http://martinjansen.com/