SSI offers data / file display and cgi execution. Common commands/expressions are:
echo (print server environment variables such as DOCUMENT_URI, DATE_LOCAL)
include (virtual and file)
exec (cgi/perl)
if/else.
flastmod
fsize
tricks
Code:
<a href="<!--#echo var="HTTP_REFERER" -->">Back</a>
Works great when you have global components on your site. For instance, when you need to modify a global footer, all you need to do is change the include file for the global footer instead of having to change every footer on each page.
PHP offers everything SSI has in addition to practically anything you can do with perl including ODBC. The language is very similar to perl.