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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.