__DIR__ would be cool. Do other functions that take filename parameters also expand the paths? i.e.: fopen() ..etc.
If they do, then maybe there isn't a need for a function as long as there's a __DIR__ constant to easily get the current directory. Quoting Hartmut Holzgraefe <[EMAIL PROTECTED]>: > Hartmut Holzgraefe wrote: > > Kelvin Jones wrote: > > > >> include_once realpath(dirname(__FILE__).'/../example.php'); > > > > BTW: don't we have __DIR__ by now? > > > -- > Six Offene Systeme GmbH http://www.six.de/ > i.A. Hartmut Holzgraefe Email: [EMAIL PROTECTED] Tel.: +49-711-99091-77 > > Sie finden uns auf der CeBIT in Halle 6/H44 http://www.six.de/cebit2003/ -- PHP Development Internals - Developing the PHP Runtime Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php