View Single Post
  #2 (permalink)  
Old Jan 19th, 2007, 02:34
alexk13 alexk13 is offline
New Member
Join Date: Feb 2006
Location: Australia
Age: 37
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trouble with Server Side Includes

I always try to use virtual includes, but i always makesure it in including relative to the root directory of my website, by putting a / before the filename:
Code: Select all
<!--#include virtual="/navbar.inc" -->
By doing this, i can keep all my included file in a common place (normally a folder named common in my case) and then include them like this:
Code: Select all
<!--#include virtual="/common/navbar.inc" -->
This will work for including files from any directory in your website - you just have to know the path to the file starting in the root directory.

HTH
Alex
Reply With Quote