Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

The Basic Uses Of SSI - Server Side Includes

By Sean Burns
2003-10-14


Extensions And Hosting

Now, the original page that you have created will generally need to be saved with a .shtml extension. Generally speaking most hosting companies will set your site up so SSI only works on pages with the .shtml extension. It is possible to make it work on .htm or .html pages but for simplicity, it's best just to go with what your server has already been configured for. Upload the files to your server, look at the original page that you created in your browser and it should look the way you want. If it doesn't check that the paths to the SSI files that you have called are correct or contact your hosting company to make sure that you can use SSI (if you cant, find a new hosting company).

It is important to note that you probably can't use SSI on pages generated by a CGI script - unless the script can generate pages with a .shtml extension. You are, however, able to Include the output of a cgi script in your pages. In fact, you can Include pretty much anything on your site in your HTML pages. You may, on some servers, need to use #include exec rather than #include virtual - this depends on your server. Contact your administrator to find out.

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


Related Tutorials:
» Enrich Your Web Applications
» Microsoft Complicates HTML Emails With Outlook 2007
» Testing Your Forms for Hijacking Vulnerability
» Control Your Domain Registration Data
» HTML Forms POST, GET
» HTML Tables