Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27884 invoked by uid 1007); 13 Mar 2003 16:24:22 -0000 Message-ID: <20030313162422.27883.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 13 Mar 2003 16:24:16 +0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 212.135.80.136 Subject: Relative include feedback From: kelvin@kelvinjones.co.uk (Kelvin Jones) 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? Regards, Kelvin