<!--#set var="footer" value="I agree :-)" -->
What are SSI?
SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology.
The decision of when to use SSI, and when to have your page entirely generated by some program, is usually a matter of how much of the page is static, and how much needs to be recalculated every time the page is served. SSI is a great way to add small pieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution.
.htaccess
Options +Includes
AddType text/html .shtml
AddHandler server-parsed .shtml
All text inserted with SSI is green (<ins>).
<!--#echo var="DATE_LOCAL" --><!--#config timefmt="%d-%m-%Y" -->
<!--#echo var="DATE_LOCAL" --><!--#config timefmt="On %d-%m-%Y at %H:%M:%I hour" -->
<!--#flastmod file="index.shtml" --> or <!--#echo var="LAST_MODIFIED" --><!--#exec cmd="nslookup krijnhoetmer.nl" --><!--#set var="myName" value="Krijn Hoetmer" -->
<!--#echo var="myName" --><!--#config timefmt="%H" -->
<!--#if expr="${DATE_LOCAL} > 18" -->
It's evening at my computer now.
<!--#elif expr="${DATE_LOCAL} > 12" -->
It's afternoon at my computer now.
<!--#elif expr="${DATE_LOCAL} > 6" -->
It's morning at my computer now.
<!--#elif expr="${DATE_LOCAL} > 0" -->
It's night at my computer now.
<!--#endif --><!--#include file="include.html" -->Conclusion
SSI is certainly not a replacement for CGI, or other technologies used for generating dynamic web pages. But it is a great way to add small amounts of dynamic content to pages, without doing a lot of extra work.
I agree :-)