.
Developer Spot - Web Development Tutorials
arrowDeverloper Spot  Tutorials  HTML  The Basic Uses Of SSI - Server Side Includes 
 
Development Tutorials
ASP
CGI & Perl
CSS
HTML
Java
JavaScript
Linux
PHP
XML




More Resources
Web Hosting Articles
Web Development News
PHP Manual
Web Hosting Directory
Budget Web Hosting Linux Web Hosting Small Business Hosting
Windows Web Hosting Reseller Web Hosting Web Hosting Articles

The Basic Uses Of SSI - Server Side Includes

By Sean Burns
2003-10-14
Reader Rating: 4 out of 5
Bookmark Print Version
One Last Tip On SSI

One last tip on SSI. You can Include files within an Include file. This means that, using the above example, you could have <!--#include virtual="/anotherfile.html" --> within the header.html file. It is important to note that you still need to follow your servers "rules" so you may need to change header.html to header.shtml. The most common example of doing this is what occurs on this site - we Include our ad script within our header and footer files. So within header.shtml we have <!--#include virtual="/cgi-bin/centralad/ssirand.cgi.html" --> which generates the ads within the header file that we Include in this page.

There are other uses for SSI - you can include dates, browser info, referrers and so on but what I have described is a good start and will save you a lot of time.


Article Pages:
Introduction To SSI - Server Side Includes
How To Use SSI
Extensions And Hosting
One Last Tip On SSI

 Rate this article:   Poor          Excellent 


If you found this article interesting, you may want to read these as well:

» Using SSI's To Ease Site Maintenance

» Taming the Update Monster

» The Background-Table Combo



 
Development Tutorials: CGI & Perl - CSS - HTML - Java - JavaScript - Linux - PHP - XML
More Resources: Web Hosting Articles - Web Development News - PHP Manual