SSI
From JumbaWiki
(Redirected from SHTML)
SSI, short for Server Side Includes, is a server-side scripting language that includes the content of a file into another via a server. HTML code that includes SSI is called SHTML and must use the file type .shtml and can sometimes use .shtm depending on the setup of the server. SSI can also run on .htm and .html file documents through a change with the .htaccess file.
Contents |
Usage
Most plaintext formats can be included into shtml including .htm and .txt by using the following syntax:
<!--# include virtual="filename.txt"-->
If SSI isn't enabled, the browser will read the string as a comment and will ignore it. It will only be viewable when a user views the source.
Other Uses
See Wikipedia article for more information.
<!--#exec cgi="/cgi-bin/foo.cgi"--> <!--#exec cmd="ls -l"--> <!--#echo var="REMOTE_ADDR" --> <!--#config timefmt="%y %m %d" --> <!--#config sizefmt="bytes" --> <!--#config errmsg="SSI command failed!" --> <!--#flastmod virtual="index.html"--> <!--#fsize file="script.pl"-->
See also
External links
- Wikipedia SSI article http://en.wikipedia.org/wiki/Server_Side_Includes

