Common SSI Commands

You can use SSI commands for a variety of tasks, including inserting (echoing) a value into the document, running a program, inserting the contents of a file into the document, setting the way file sizes appear, inserting the hit count or a file size into the document, and more. The following sections provide step-by-step examples of SSI commands in action.

Note

Apache has expanded its Web server to use Extended Server-Side Includes (XSSI). XSSI provides additional functionality to SSI, including the use of condition statements. For more information, see http://www.apache.org/docs/mod/mod_include.html.

Most other servers support all the commands listed here or a variant command to accomplish the same task.

echo

The following ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.