Re: PHP 4.0 Bug #9673 Updated: Relative paths in require(), require_once(), include(), include_once()

From: Date: Thu, 15 Mar 2001 14:59:06 +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-48991@lists.php.net to get a copy of this message
stas@php.net 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@six.de http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4

« previous php.dev (#48991) next »