How do I use the
<!--#include... instruction
with my virtual server?
What address for directories?

   Site

   Server


Use #include to include text or html in a current html document.

You can easily 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 are trying to include doc1.html into doc2.html. Both documents exist in a directory called "docdir" in your main htdocs area.

Here is how to use either form of the #include server side include in doc2.html to include doc1.html in subdirectory "docdir" in your htdocs area.

<!--#include file="doc1.html" -->
<!--#include virtual="/docdir/doc1.html" -->

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



HOME | SITE HOSTING | VIRTUAL SERVERS | PAGE DESIGN | FAQ | ORDER | TECH SUPPORT


Copyright © 1996, Sphynx Web Solutions. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders. Direct questions or comments to webmaster@sphynx.com.