Server-Side Includes

Server-side includes are a simple way of generating documents that are the same apart from a small dynamic part (such as a page access counter). The HTTP server needs to be configured to accept them.

A simple tutorial is at http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html. Most commonly used is the exec command


<!--#exec cmd="..." -->
The command in "..." will be given to /bin/sh to execute. e.g.

<!--#exec cmd="/bin/date" -->
will include today's date in the document.

Exercises


Jan Newmarch (http://jan.newmarch.name)
[email protected]
Last modified: Tue Aug 1 15:10:20 EST 2000
Copyright ©Jan Newmarch
Creative Commons License Copyright © Jan Newmarch under the terms of the Creative Commons Attribution 2.1 Australia License.