Re: PHP 4.0 Bug #9673 Updated: Relative paths in require(), require_once(), include(), include_once()
| From: | Stanislav Malyshev | Date: | Thu, 15 Mar 2001 16:06:41 +0000 |
| Subject: | Re: PHP 4.0 Bug #9673 Updated: Relative paths in require(), require_once(), include(), include_once() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-48998@lists.php.net to get a copy of this message | ||
HH>> what about having a __DIR__ macro similar __FILE__ that is
HH>> the dirname of the current file so that one can use
HH>>
HH>> include __DIR__."/whatever.inc"
That's nice idea, I think. Andi, Zeev - what do you say on this?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115