Re: Relative include feedback
| From: | Derick Rethans | Date: | Thu, 13 Mar 2003 16:28:01 +0000 |
| Subject: | Re: Relative include feedback | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17@lists.php.net to get a copy of this message | ||
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/
-------------------------------------------------------------------------