A footer is used on many websites and in general is the same globally
throughout the site. Now what happens when the footer needs to be
changed? Well, by using an include fie for the footer this is a simple
task.
You will also notice there is a hyperlink for contacting us.
Suppose the directory structure and subsequently the page this link
points to is changed. With the use of an include file, all I have to
do is change the one file and the footer on every page changes
instantly.
Here's what to do. Create a directory for your include files named
include. Now create a file named foot.htm and place the file in the
include directory. open foot.htm and put the content that is normally
found in the footer of your pages. Now replace that content of the
footer on each page with this line:
<!-- #Include Virtual="include/foot.htm" -->
Every time you need to make a change to the information in the
footer, all you have to do is open foot.htm and a change that file.
Then all the pages in the site have the correct information at the
bottom of the page.
On a different note, you may have noticed the copyright information
when you looked at the bottom of this page. This is something you
DON'T have to update manually. To see how this is done
take
a look at this little script.