Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50396 invoked from network); 13 Mar 2003 16:45:55 -0000 Received: from unknown (HELO ns2.valuehost.co.uk) (62.115.255.86) by pb1.pair.com with SMTP; 13 Mar 2003 16:45:55 -0000 Received: (from mail@localhost) by ns2.valuehost.co.uk (8.11.6/8.11.6) id h2DGiwI29186; Thu, 13 Mar 2003 19:44:58 +0300 (MSK) (envelope-from kelvin@kelvinjones.co.uk) X-Authentication-Warning: ns2.valuehost.co.uk: mail set sender to kelvin@kelvinjones.co.uk using -f Received: from 212.135.80.136 ( [212.135.80.136]) as user kelvin@kelvinjones.co.uk@localhost by mail.kelvinjones.co.uk with HTTP; Thu, 13 Mar 2003 19:44:58 +0300 Message-ID: <1047573898.3e70b58a45581@mail.kelvinjones.co.uk> Date: Thu, 13 Mar 2003 19:44:58 +0300 To: Hartmut Holzgraefe Cc: internals@lists.php.net References: <20030313162422.27883.qmail@pb1.pair.com> <3E70B17E.2010409@six.de> <3E70B278.30901@six.de> In-Reply-To: <3E70B278.30901@six.de> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs Subject: Re: [PHP-DEV] Relative include feedback From: kelvin@kelvinjones.co.uk __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 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/