Server Side Includes

I am a  'newbie' (very). I am a 77 year old man with a WebSite. I have been reading about 'Server Side Includes' and I like what they can do and I want to use them. I am at a complete loss as where to start, how find them, how to install/setup/configure them etc. I just joined EE to try to find the answers. I need someone to start at the VERY begining and walk me through the process. I  understand most of the FTP and uploaning files to the server. I have been to most of the sites on the web but they don't give me what I need. All the help you can give me will be greatly appreciated. Regards: willinreno
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Server Side Includes (SSI) are a feature of the Apache web server software.  You need to make certain that your web site is hosted on a server that uses Apache, and that SSI is enabled.  To find out if you are using Apache, you can put your URL into the form entitled "What's that Site running?" at - it will tell you if you are using Apache or a different software.  Your web host can tell you if SSI is enabled, or you can test it on a test file.

SSI can be used for several things, but are most commonly used to include either:

(1) another file that contains an HTML fragment that is used in many pages (such as a header, footer, or navigations) so that you only have to update one page

(2) the output of a CGI script so that the page content can change day to day (like a script that says what today's date is).

There are also other commands that can be used to print out things like the last time that the file was modified.

As SSI requires that the web server do extra work to 'parse' the file (i.e. read and interpret it) instead of just sending the contents of the file to the site user's browser, many hosting companies distinguish between pages which use SSI and which do not by requiring that HTML files that use SSI have a special file extension, usually .shtml or .shtm (instead of .html or .htm).

The basics of (1) are very simple;  to include the contents of another file into your html file, you can use:

<!--#include virtual="/path/to/file"-->

For example, if I had the following simple fragment:

<small>Copyright 2004 Will N  Reno</small>

in a file called copyright.html in the uppermost directory of my web site, I could include it from another file (perhaps called test.shtml) as follows:

<title>My Title</title>
<h1>My Test</h1>
<p>Some text</p>
<!--#include virtual="/copyright.html"-->

There are some good references that have been written on SSI:

... and if you have more questions, ask away!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
willnrenoAuthor Commented:
Thanks..Periwinkle I think this will do the trick. I had sent an e-mail to my hosting company but didn't get an answer, until now. It says that their servers are SSI enabled,  so I may be able to do it. I have plenty of books but if I need more help I will come to you...again, Thanks  willnreno
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.