SSI:FSize & Flastmod

These directives provide a safe mechanism for reporting file information back to the user without using potentially dangerous - and often unavailable - <!--#exec cmd=... commands. Typical examples of these directives are illustrated below

DirectiveMeaningOutput
<!--#fsize virtual="/scripts/myip.php" --> Size of myip.php 60
<!--#fsize file="sfile.php" --> The size of this file 3,002
<!--#flastmod virtual="/en/menu/ssi.shtml" -->When was /en/menu/ssi.shtml last edited? Friday, 16-Oct-2009 02:20:59 EDT

The manner in which file sizes are reported can be changed by specifying <!--#config sizefmt... . The arguments used here merit further explanation.

Jump To...

Colophon