RE: [PHP] include files

From: Date: Mon, 05 Feb 2001 17:50:36 +0000
Subject: RE: [PHP] include files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38279@lists.php.net to get a copy of this message
DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php > -----Original Message----- > From: David VanHorn [mailto:dvanhorn@cedar.net] > Sent: Monday, February 05, 2001 12:16 PM > To: php-general@lists.php.net > Subject: [PHP] include files > > > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#38279) next »