
Web Design
Server Side Includes
Beginners Level
SSI Test
A simple Server Side Include Demonstration
(How to tell if you can start writing .shtml pages!)
This simple demonstration shows how to test your web server to see if SSI is
enabled.
- Create a new web page called ssitest.shtml.
- Between the <Body> </Body> Tags type this code:
- Save file and upload to web space.
<!--#echo var ="DATE_GMT"-->
If when viewed you get a date appear as below you are 98% certain to be SSI capable.
It has been reported that this test is not conclusive in all cases and depends
on the server setup.
As an example then todays date is :
The code is written as below.
<p>As an example then todays date is : </p> <!--#echo var="DATE_GMT"-->
View Source in this instance will not help you - it will show you that the server has inserted the date in place of the SSI echo directive!
What next, this depends on your results:-
1. Your test failed.
Contact your ISP or Web Space Provider and see if they can enable SSI
or if an upgrade package is available.
Then come back here and try the test again.
2. Your test worked.
Congratulations! You can now start effective and time saving coding
of web pages.
If you go HERE you can learn how
to produce a simple SSI page.
Did you find this HowTo mini tutorial useful?
If you have any comments or suggestions to make regarding this tutorial or you want something else covered in a future HowTo please visit the forums and let us know.
