Lecture - Server Side Include


 Server Side Include

 

 

Prerequisites

 

None

 

Summary

 

The basics of using Server Side Include

 

Video 

 

 

Reference Materials

 

ssi_example.shtml

<!DOCTYPE html5>
<html>
<head>
<title>SSI Include Example</title>
</head>
<body>
 <!--#include virtual="navigation.ssi" --> 
<br/>
<br/>This includes a virtual navigation.
</body>
</html> 

 

navigation.ssi

<a href="http://www.yourhtmlsource.com/sitemanagement/includes.html"> Article on Server Side Include</a> 

 

Additional Information

 

Thank you Dr. Eaglin. I can see that being very helpful in the future.

I tried it with you simple example on my GoDaddy Windows hosted account and only had one problem.

I had to change the line you had in your .shtml file to this:

 <!--#include file="navigation.ssi" --> 

Notice that is says to "file" rather than "virtual" like in your example. It works like I have it now, but I wanted to mention it  to you to see if this causes trouble or is just the nature of the beast for Windows hosting... or something else.


 

COP 4813 Lectures