HTML
  Home arrow HTML arrow Page 2 - Using SSI to Boost Efficiency
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Using SSI to Boost Efficiency
By: Clay Dowling
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 7
    2004-08-16

    Table of Contents:
  • Using SSI to Boost Efficiency
  • Enabling SSI
  • Simple SSI Directives
  • How to Use SSI
  • Navigation Menus
  • Common HTML Blocks
  • Business Considerations

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using SSI to Boost Efficiency - Enabling SSI


    (Page 2 of 7 )

    If you're using IIS, Server Side Includes are enabled by default for any files with the extensions .shtml, .stml or .stm. 

    If you're using Apache, you will need to enable SSI manually.  In your global configuration, add the following:

    Options +Includes

    This allows SSI to be parsed by the server. To identify which files should be parsed, you also need to inform the server of the new file extension.  If you're one of the fortunate ones using Apache 2.0, the following will do the job:

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml

    If you're like me and still living in the past with Apache 1.3, you need to do the following instead:

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    This pair of directives tells the server that files ending in .shtml should be processed for Server Side Include directives. Because Apache is the ever versatile server, there is another method called XBitHack.  With XBitHack on, files with an executable bit will be processed for includes, just as if the file had the .shtml extension. I haven't used this feature and I have some reservations about marking what is ultimately a text file as executable. This method won't work if you're using Apache under Windows, since the file permission system is too different for an Execute bit to make much sense.

    More HTML Articles
    More By Clay Dowling


     

    HTML ARTICLES

    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway