
|
email this FAQ to a colleague
Q:
Does the HTTP server support server side includes?
A:
IIS supports Server Side Includes. there are some restrictions and it's
somewhat picky about syntax.
The kind of SSI which are supported are of the #include type, i.e.:
<!--#include tag="value"-->.
<!--#include file="filename"-->
<!--#include file="/ssi/foo.htm"-->
<!--#include file="/VirtualRoot/MorePath/file.ext"-->
Processing-related things like #echo and #exec aren't supported yet.
- hint: don't add any additional spaces on the line.
- hint: use lowercase for "include file".
- hint: some people claim that the path is tricky, and have had better
luck listing it starting from its virtual root from where the include file
resides.
- hint: the file being included that is doing the including (not the
file to be included) must be name with a ".stm" extension (not
sure if ".shtml" works).
And of course note that SSIs reduce performance. The server is not able
to call the high-performance TransmitFile() API, since the server processes
the file before sending, thus not using the file contents directly, where
TransmitFile() helps.
The help file that comes with IIS has some instructions, look up "Include"
in the index.
- Lee
|