[thelist] SSI Question

aardvark roselli at earthlink.net
Mon Sep 3 11:54:43 CDT 2001


> From: "Olly Hodgson" <gnarly at gmx.co.uk>
> 
> Could someone explain the correct usage of the file and virtual
> variants of the include command (directive?)?

excerpted from...
Including Files in ASP
http://evolt.org/article/list/17/1344/index.html

(don't worry that it's for ASP, the syntax is the same)

Using the 'Virtual' Keyword
Use the 'virtual' keyword to indicate a path beginning with a virtual 
directory. For example, if a file named 'footer.inc' resides in a virtual 
directory named '/footer,' the following line would insert the 
contents of 'footer.inc' into the script containing the line:

  <!--#include virtual ="/footer/footer.inc"--> 

Using the 'File' Keyword
Use the 'file' keyword to indicate a relative path. A relative path 
begins with the directory that contains the including file. For 
example, if you have a file in the directory 'headers', and the file 
'header.inc' is in 'root\headers', the following line would insert 
'header.inc' into your script:

  <!--#include file ="headers/header.inc"--> 





More information about the thelist mailing list