Home     SSI Lab     CSS Templates     CSS     Htaccess     Web Design     XHTML

X-SSI Lab

graphic-img   

SSI-D HOME

SSI LAB

Introductory Topics

SSI Directives

Extending SSI

Apps/Examples

Top Resources

CSS Templates

CSS

.Htaccess

Web Design

(X)HTML

HTML-Kit

Resources





SSI Config Command

Introduction

The Config command is used to control certain aspects of parsing behaviour. In other words you can define how certain elements are displayed instead of their default way.



CONFIG Command

The config command allows you to specify the format that will be used for dates, times and file sizes and the text of the generic error message which will be sent to the client if an SSI processing error occurs.

To change the format for how file size is displayed:

<!--#config sizefmt="bytes" -->

or...

<!--#config sizefmt="abbrev" -->

Sizefmt sets the format to be used when displaying file sizes using the fsize command. As shown in the above example it can be formatted to display in bytes or in abbreviated format as kilobytes or megabytes as appropriate.



To format the date to yy/mm/dd you can use:

<!--#config timefmt="%y/%m/%d" -->

More about this in the SSI Date Command guide.



If an SSI command fails there is a standard error message displayed. To change this message you can use:

<!--#config errmsg="Hugh Stun, we have a problem." -->



You can actually define more than one attribute in a single config statement. The following example defines the format for both the date and file size.:

<!--#config timefmt="%y/%m/%d" sizefmt="abbrev" -->




Advertisement Sign up for free to PayBox.me today and get $25 just for joining AND earn up to $20 per day for participating.