Offices in ct - clients worldwide Call (888) 288-7162
Hosting Connecticut offers a full range of website services including web hosting and website design.
Server Side Includes
| SSI Instructions Server Side Includes are HTML comments that direct the server to dynamically generate data and place it on a web page. SSI can be used to ensure that common info stays the same on all pages throughout your site. The use of SSI can also save time when making site-wide changes to those components, since changes only need to be made in one place instead of to each page. SSI is commonly used for headers (top of web page, logo, etc), footers (copyrights) and navigation. Example 1: Copyright 1. Create a file called copyright.shtml In it, put your copyright notice in html like this: ©2011 Your Site Name. All rights reserved. 2. Do not include the , and tags on this page. 3. Save the file in the root (main) directory of your web site. 4. Open the page on which the footer is to appear and insert the following HTML comment: 5. Upload both files to your browser (or open them in a WYSISYG program) to make sure your SSI works. If the copyright notice appears on the page with the include statement, it worked! Example 2: Navigation 1. Create an html file with the following text: Home | Contact Us | Products | Orders 2. After typing the desired text, create the links for each word or phrase like this: <a href="http://www.yoursitename/home.htm">Home</a> | <a href="mailto:myemail@address.com">Contact Us</a> | <a href="http://www.yoursitenam/products.htm">Products</a> | <a href="http://www.yoursitename/orders.htm">Orders</a> 3. Save the file as navigation.shtml 4. Next, open the pages in which the navigation is to appear. 5. Insert the following HTML comment: 6. Save the file. Upload your files to test. To update your pages, simply open the SSI page such as navigation.shtml above and make your changes. Save your file. All pages with the corresponding include statement will be updated. Notes:
|






