Re: [PHP-DEV] PHP 4.0 Bug #9673 Updated: Relative paths in require(), require_once(), include(), include_once() From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 03/15/01

stas <email protected> wrote:
> Now, all relative pathes are resolved against the current
> directory of the including script (which is the directory
> where it's located). This is a known issue. Use
> include_pathes in the meantime.

what about having a __DIR__ macro similar __FILE__ that is
the dirname of the current file so that one can use

include __DIR__."/whatever.inc"

-- 
Hartmut Holzgraefe  hartmut <email protected>  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>