Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
HTML
<p>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.</p>

<p>We start with a very basic HTML page...</p>
Code Block
themeEclipse
<HTML>
	<BODY>
		<H2>Welcome to my page.  The date is 1 January 2001.</H2>
	</BODY>
</HTML>
HTML
<p>This is clearly inappropriate because if a user requests your page on, say, 14 February 2002, the date will be incorrect.</p>

<p>So to force the web server to show the correct date, simply substitute the text for the variable name, in this case #SSI_DATELONG....</p>





Code Block
themeEclipse
<HTML>

	<BODY>

		<H2>Welcome to my page.  The date is #SSI_DATELONG.</H2>

	</BODY>

</HTML>

HTML
<p>If this page is now requested, it will look something like this...</p>
Code Block
themeEclipse
<HTML>
	<BODY>
		<H2>Welcome to my page.  The date is 1 January 2001.</H2>
	</BODY>
</HTML>
Code Block
themeEclipse
<HTML>
	<BODY>
		<H2>Welcome to my page.  The date is #SSI_DATELONG.</H2>
	</BODY>
</HTML>