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.
Websites, there are literally billions of them out there in... Read More
So you've decided to take the plunge. You know that... Read More
Writing for your web site is not the same as... Read More
Your website is your tool for showing the online community... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
These days, it seems that everyone has a website. Unfortunately,... Read More
Everyday we hear that another company goes out of business.When... Read More
No matter what product or service you're promoting, unless you... Read More
"How to turn "slightly interested" customers into "I've got to... Read More
This article may come as a surprise to you.Especially since... Read More
Creating your own website is actually easy in today's world... Read More
Don't mess with those links! When you're designing your site,... Read More
A professionally presented business website is a powerful and essential... Read More
Want to know what the worst thing to say on... Read More
They may look cutting edge, but if you want a... Read More
Being a writer, when I was asked to do some... Read More
A search engine robot actually reads the wording on your... Read More
New Web sites are springing up online by the millions.... Read More
Web advertising has taken many forms, including those that appear... Read More
The Internet is a relatively new medium. What works for... Read More
In retailing there is a saying that sales are made... Read More
As a web designer, I have a personal interest in... Read More
Ever browse across a website that took ten million years... Read More
If you are anything like me, your website is a... Read More
A "template" is simply a design format which you can... Read More
Using CGI scripts to add automation to your web site... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
How often, men, have you come home to find the... Read More
For most people graphic design does not come easy. Unfortunately... Read More
Read the title of this article over a couple of... Read More
Website design firms come in all shapes and sizes.When choosing... Read More
Every action has a beginning phase where you launch your... Read More
Graphics are fun, but if you put in too many... Read More
One of the challenges of moving a web site up... Read More
In this article I will give advice and tips of... Read More
With so many different configurations internet users have their computers... Read More
Since I'm a web designer, I have a tendency to... Read More
New Web sites are springing up online by the millions.... Read More
You've likely heard of the movie, Jerry Maguire, with its... Read More
With so many new websites going up, it is hard... Read More
I do site reviews. Needless to say, I see a... Read More
When you start building your online business and search for... Read More
Are you building a direct sales or mlm business online?... Read More
Learning how to convert visitors to your web site into... Read More
It's been said again and again, when it comes to... Read More
The Psychology of ColorAre you using the best colors for... Read More
Nope. You certainly don't need a website.But you don't need... Read More
An "include" file is a piece of code that can... Read More
If you have a web site to which people pay... Read More
One product, one long web page: this kind of web... Read More
All websites have a homepage. It is the most important... Read More
Every now and then, I receive a link exchange request... Read More
1. Assemble a web site development plan that is integrated... Read More
A "404 Error" happens when the web server you are... Read More
Web advertising has taken many forms, including those that appear... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
Novice and professional graphic designers, we are aware that you... Read More
Designing your website means you have to be creative, plan... Read More
Internet Explorer, created by microsoft has been the most popular... Read More
I hate to imagine that in your web development project... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
There are two camps when it comes to flash web... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
In the of-line marketing world it is all about trying... Read More
(Making Your Graphics Work For You)It's no secret that a... Read More
Don't mess with those links! When you're designing your site,... Read More
Web Design |