The Basic Uses Of SSI - Server Side Includes
By Sean Burns
2003-10-14
Reader Rating:

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.
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
|