Source code for SSI example

<HTML>
<HEAD>
<TITLE>SSI Demo</TITLE>
</HEAD>
<BODY>
<!-- this may be specific for the thttpd ssi program -->
<!-- set the prefered time format using strftime format string -->
<!--#config timefmt="%c" -->

The Date is <!--#echo var="DATE_LOCAL" --><BR>

<!--#include file="hello.txt" --><BR>

<!--#include virtual="/ssi/hello.txt" --><BR>

DOCUMENT_NAME = <!--#echo var="DOCUMENT_NAME" --><BR>
DOCUMENT_URL = <!--#echo var="DOCUMENT_URI" --><BR>
LAST_MODIFIED = <!--#echo var="LAST_MODIFIED" --><BR>
DATE_GMT = <!--#echo var="DATE_GMT" --><BR>


Yoepie!

</BODY>
</HTML>

When this code is parsed through the ssi.cgi program it results in this.

 
freesco/howtos/ssi_src.txt (31560 views) · Last modified: 2005/09/14 00:49 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki