contents
Up: Examples of CGI for
Previous: A Web Form Analyzer
Next: DMA CGI Questions

Server Side Includes on dmapub

Server Side Includes (SSI) are enabled on dmapub for all documents with a .shtml suffix. The apache server parses the document in search of include commands. The output of the command is inserted into the document where it was called. For more information about SSI see the apache documentation. CGI cannot be used in SSI.


Here is an example of a Server Side Include:

You might want to look at the source of the SSI command.

This is the command in this document that evokes the SSI:

        <!--#include virtual="/cgi-bin/cgiwrap/rhawes/cgi-test" -->

Here is the result:

CGI test script report

argc is 0. argv is "".

CONTENT_LENGTH =
CONTENT_TYPE =
GATEWAY_INTERFACE = CGI/1.1
PATH_INFO =
QUERY_STRING =
REQUEST_METHOD = GET



Last Modified: 2004-01-25
Richard L. Hawes
rhawes@dmapub.dma.org