Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Eric C. Pollitt
Kilimajer <[EMAIL PROTECTED]> > Date: Wed, 18 Sep 2002 10:59:46 +0200 > To: PHP <[EMAIL PROTECTED]> > Subject: Re: [PHP] Conditionally include file based on document location > > switch($DOCUMENT_URI) { > case '/': > include(" watch you want&q

Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Marek Kilimajer
switch($DOCUMENT_URI) { case '/': include(" watch you want"); break; case } Eric C. Pollitt wrote: >I would like to know how to conditionally included a file based on the >document location. > >The purpose is for placement of location-specific navigation men

[PHP] Conditionally include file based on document location

2002-09-17 Thread Eric C. Pollitt
I would like to know how to conditionally included a file based on the document location. The purpose is for placement of location-specific navigation menus. I'm not interested in DHTML hierarchical drop-down menus, rather inserting ready made HTML files using perhaps (?) DOCUMENT_URI (?) and er