Our Collection Of Articles
What is SSI?
Written By:
"A server-side include is a variable value (for example, a file "Last modified" date) that a server can include in an HTML file before it sends it to the requestor."
But what does this mean?
Server Side Includes allow you to dynamically include another file inside your webpage. By this, I mean that you can use two or more files, combine them together and have them displayed as one webpage. The best way to show the power of SSI is by creating a working example.
Before we do, you will first need to check that your server has SSI enabled. Copy the text below into a text editor like Notepad and save it as ssitest.shtml, making sure the file has a .shtml extention and not .html, otherwise the test will not work.
<html>
<head>
<title>SSI Server Test</title>
</head>
<body>
<h1>SSI Test</h1>
<p>Today is <!--#echo var="DATE_LOCAL" --></p>
</body>
</html>
Then browse to the file on your server and if the date is displayed, your server has SSI enabled. If not, you will need to contact your host to have it enabled.
|