Knowledge Base / Email & Hosting Questions / Scripting & Databases /

What are Server Side Includes (SSI) used for and how do I use them?

Server Side Includes (SSI)  allows you to insert a piece of information (such as the current date, any HTML file etc.) onto any web page, and have the browser display it as if it was hard coded onto that page.

For example, if you want to be able to display the current date on your site, SSI enables you to do this, without having to manually edit your web page and change the date every day!. You will need to rename the pages that you want to use SSI on, from the usual .htm or .html extension to .shtml e.g. change index.html to index.shtml. Server Side Includes only work in files with .shtml extensions.

Others in this Category