www.digitaldaze.com
Can I use the SSI include directive?

Yes you can use the #include directive to include files into your current html document. The "file=" or "virtual=" elements can both be used. For example, let's say you were trying to include myfooter.html into mypage.html. Both documents exist in a directory called "mydir" in your main htdocs area.

Here is how to use either form of the #include server side include in mypage.html to include myfooter.html in subdirectory "mydir" in your htdocs area.

<!--#include file="myfooter.html" -->
<!--#include virtual="/mydir/myfooter.html" -->

Notice that the "file" element is relative to the current document directory and the "virtual" element is relative to the the main htdocs (DocumentRoot) directory.

Related Question: How do I turn on SSI Includes?

 

[Legal Notice]
http://www.digitaldaze.com