include files
| From: | David VanHorn | Date: | Mon, 05 Feb 2001 17:15:38 +0000 |
| Subject: | include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38268@lists.php.net to get a copy of this message | ||
I've got kind of a deep page structure, lots of subdirs.
I'm having trouble with an include directive.
The problem is a footer that I use on all pages, which resides in the base
directory.
The footer file includes another file, which I use if there is no menu.
footer.inc has menu, and includes footer-nomenu.inc
footer-nomenu.inc may be used alone.
I know this works, in footer.inc, to pull up nomenu.
<? include("/home/dvh/public_html/footer-nomenu.inc")?>
However, is there a more "generic" way to specify the server root as the path?
I'd rather not expose my directory structure in the PHP code.
I tried various versions of ../ and ../../ without success.
--
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9