Re: Relative include feedback

From: Date: Thu, 13 Mar 2003 16:44:58 +0000
Subject: Re: Relative include feedback
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-19@lists.php.net to get a copy of this message
__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 <hartmut@six.de>: > 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: hartmut@six.de Tel.: +49-711-99091-77 > > Sie finden uns auf der CeBIT in Halle 6/H44 > http://www.six.de/cebit2003/

« previous php.internals (#19) next »