An "include" file is a piece of code that can be put into a seperate file -- for example -- your navigation bar -- and then "included" in a number of other pages. This has the very useful advantage of allowing you to retain consistency over a very large number of pages, and then make changes to all of those pages by just changing the include file.
For instance, say you want each page in your site to include a short paragraph that uniquely identifies your site. I normally call this a "site-id". It would read something like this:
ForSaleTours.com - provides information and sources for virtual tours for the real estate industry. We explain different methods of combining video and audio to produce virtual representations of your home to enhance its value and to make the purchasing experience of potential buyers better than it otherwise might be.
To set this up so it appears in a host file as an "include", you normally have to do three things:
1. Make sure your server allows SSI (server side includes). If you have access to your web site control panel you should be able to figure this out. Or if not, ask your web host technical support people.
2. Create a "host" file and give it a file extension so your server recognizes it contains include files. A common extension is .shtml
3. Create your include file. It can usually have any of a number of different extensions: .html, .htm, .php, even .txt. This is the file that will be included within other files.
4. Embed the correct code within your .shtml file to point to the include file. If the include file and host file are in the same folder on the server, it will look like this:
<!--#include file="file_name.html"-->
If the include file is located in a different folder (on the same server), the code will look like this:
<!--#include virtual="folder_name/file_name.html"-->
In the above example you have to make sure the relative path to the include file is set correctly.
Now when you want to make a global change to, for instance, your "site-id", you just have to change the include file (once), and this change will be populated through all the pages that include that file.
Include files can be put to many creative uses that allow you to do things that are otherwise very impractical. And if you have a website with a large number of pages, this technique can save you a great deal of time.
For more web design and online marketing tips see the Linknet Marketing Resource Library
Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including The Linknet Network of Websites. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.
![]() |
|
![]() |
|
![]() |
|
![]() |
Have you ever been to site with so much ad... Read More
Think of the people who visit your site as blind... Read More
Websites, there are literally billions of them out there in... Read More
1. Size does not equate to competencePeople sometimes assume a... Read More
By following feng shui guidelines and techniques, you can build... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
There is no doubt that reprint articles can serve lots... Read More
When it comes to marketing your website, you should really... Read More
In today's age of fast food and high-speed Internet, a... Read More
Remember the famous line from the movie Field of Dreams,... Read More
Website design firms come in all shapes and sizes.When choosing... Read More
As a web designer, I have a personal interest in... Read More
Congratulations! You've got a brand new site and it's doing... Read More
Graphics are fun, but if you put in too many... Read More
Most people will agree there is nothing more annoying than... Read More
We will take a look at why your visitors may... Read More
The Internet has seen an explosion in so called 'lance'... Read More
Do your web pages, sales letters or personal presentations include... Read More
Whether a business has just got off the ground or... Read More
I do site reviews. Needless to say, I see a... Read More
First impressions are extremely important if you hope to do... Read More
Traffic to a site can be a blessing or a... Read More
Not too long ago while looking for businesses that do... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
1. Assemble a web site development plan that is integrated... Read More
Never put form over function. Why? Because it's crucial that... Read More
Marketing is not an easy skill to acquire.It requires patience... Read More
Creating your own website is great fun! But how is... Read More
Even after you've managed to bring traffic to your site... Read More
Since I'm a web designer, I have a tendency to... Read More
Increasing the length of time a visitor is on your... Read More
Out there in the WWW there are thousands sites using... Read More
Your business website tells a lot about your company. A... Read More
Dear web site visitor.I can't tell you how glad I... Read More
Copyright 2005 Robert EvansSetting yourself up to earn a steady... Read More
Selling on the internet is a challenge. There is no... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
Have you heard of 'Babel Fish'?It's a service provided by... Read More
If you are going to be placing ads on your... Read More
What colors do you have at your website?Can they make... Read More
Have you ever walked pass a shop that, for some... Read More
One of the biggest problems with Web sites is that... Read More
The most important person that you need to please when... Read More
Your business website tells a lot about your company. A... Read More
A web site builder can be a real life saver... Read More
Does your website make you any money? Does it SAVE... Read More
These days, it seems that everyone has a website. Unfortunately,... Read More
First you need original content. Content is the heart beat... Read More
A search engine robot actually reads the wording on your... Read More
The concept of web designing based on the nature and... Read More
Are you using the best colors for your web site?... Read More
Websites, there are literally billions of them out there in... Read More
You're all ready to get started creating your web presence... Read More
If you've just finished building your new website (or revamping... Read More
Now that you have decided that it is time to... Read More
When you develop a sales brochure, you have a mental... Read More
In learning webpage design, I encountered many problems that took... Read More
The Basics You have a flourishing business ? everything is... Read More
Setting up a survey on your site is extremely simple... Read More
Creating your own website can be fun and easy, as... Read More
To build a website, there are four methods to choose... Read More
Surfing the internet is basically an information-fest! From intellectual discussions... Read More
No question about it, web design is an art. Finding... Read More
Learning how to convert visitors to your web site into... Read More
Web sites that feature products ? especially furniture or other... Read More
You have only 10 seconds to impress your potential buyer.... Read More
Web Design |