Read + Write + Report
Home | Start a blog | About Orble | FAQ | Sites | Writers | Advertise | My Orble | Login

Technology Bloggers - July 2006

SSI - Saves lot of Time and Space

July 22nd 2006 08:12
By writing long HTML pages with redundant data on hundreds of pages of
a single website, developers forget that there are various
technologies by which they can save lot of bandwidth and development
time. One of the technology is SSI whose full form is Server Side
Includes
. SSI is not a new programming language but this is just a
simple approach which helps in including data in the HTML page on the
server when user request a HTML page.

Suppose you want to develop 20 page website where many parts of the
website are same on all the pages like footer, header, navigation,

etc. Conventionaly developers develop the website with all the data
(footer, header, etc) in the single HTML page, regardless of whether
the data is going to be reuse in some other page or not. This
involved lot of developing time and storage space on server.

By using SSI developers need to create a seperate text file which
includes the data (part of the HTML page) and then refer that file in
the HTML page (saved as STHML extension). By this the developer can
reference the same file on all the 20 pages or 1000s of pages without
even writing the same data again and again.

Example

SSI file including the navigation code.(nav.ssi)
****************************************
<ul id="menu">
<li><a href="#">Side Channel Blowers</a>
<li><a href="#">Liquid Ring Comp.</a>
<li><a href="#">Centrifugal Pumps</a>
</ul>
****************************************

SHTML file (index.shtml)
****************************************
<iv id="left">

<!--#include file="nav.ssi"-->
</div><!-- left end -->
*****************************************

Some of the disadvantages
* Developer need to host the website on the server to test it. Opening
the file from the local folder will prevent the ssi part to be
displayed on the HTML page as the data/content from SSI is added on the server.

In a gist, SSI is convenient and simple approach by which developers
can save lot of development time and bandwidth.
101
Vote
   


More Posts
2 Posts
1 Posts
4 Posts
22 Posts dating from July 2006
Email Subscription
Receive e-mail notifications of new posts on this blog:
Moderated by Theresa
Copyright © 2006 2007 2008 On Topic Media PTY LTD. All Rights Reserved. Design by Vimu.com.
On Topic Media ZPages: Sydney |  Melbourne |  Brisbane |  London |  Birmingham |  Leeds     [ Advertise ] [ Contact Us ] [ Privacy Policy ]