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