Re: including above current directory
| From: | James | Date: | Mon, 12 May 2003 10:26:10 +0000 |
| Subject: | Re: including above current directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147285@lists.php.net to get a copy of this message | ||
use your prepend option OR include a "boot strap" file and define document
roots in it, one of them being either your "real document root" or the
current "project path", either way you just reference that and it saves
HOURS of fixes later on..
$CONFIG['myProject'] = "/home/httpd/vhtdocs/myserver/this/that/";
in your scripts:
@include $CONFIG['myProject']."objects/sessions/session.class.php";
"Mike Mannakee" <mike@basementideas.com> wrote in message
news:20030512015521.68163.qmail@pb1.pair.com...
> Possibly a stupid question, but how do I reference a directory a level
above
> the current file in a hierarchy, in an include statement? Or two levels?
>
> Before you ask, I'm not talking about going above the document root, just
a
> folder or two up.
>
> Mike
>
>