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
| Directive | Meaning | Output |
|---|---|---|
| <!--#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.
- file=... - indicates a file in the current path. For all practical purposes this means a file in the same directory as the current document.
- virtual=... - indicates the path to the file relative to the server root.