Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32679 invoked from network); 13 Mar 2003 16:28:03 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 13 Mar 2003 16:28:03 -0000 Received: from jdi.jdimedia.nl (jdi.jdimedia.nl [212.204.192.51]) by jdi.jdimedia.nl (8.12.4/8.12.4) with ESMTP id h2DGS1jw012859; Thu, 13 Mar 2003 17:28:02 +0100 Date: Thu, 13 Mar 2003 17:28:01 +0100 (CET) X-X-Sender: derick@jdi.jdimedia.nl To: Kelvin Jones cc: internals@lists.php.net In-Reply-To: <20030313162422.27883.qmail@pb1.pair.com> Message-ID: References: <20030313162422.27883.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Relative include feedback From: derick@php.net (Derick Rethans) On Thu, 13 Mar 2003, Kelvin Jones wrote: > I hope that this is an appropriate place to post a feature request! > > I posted a message on the Zend.com "into the future" forum about having > a function that would return the full path to a file relative to the > current executing script, and NOT the first script called, i.e.: > > Instead of doing: > > include_once realpath(dirname(__FILE__).'/../example.php'); > > As you have to do now, you could do: > > include_once relative_path('../example.php'); > > > What do you think? Just set your include path correctly? Derick -- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------