You are viewing an old version of this page. View the current version.
Compare with Current ·
View Page History
To include an SSI variable simply use the variable name in place of the type of data you want to display. This example shows how to implement the inbuilt #SSI_DATELONG variable to display the current date every time a page is requested.
We start with a very basic HTML page.
This is clearly inappropriate because if a user requests your page on, say, 14 February 2013, the date will be incorrect.
So to force the web server to show the correct date, simply substitute the text for the variable name, in this case #SSI_DATELONG.
If this page is now requested, it will look as the one below:
The result is that the variable #SSI_DATELONG was replaced by the text '21 September 2012'.
Labels: