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 forsaletours.com
Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including forsaletours.com. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.
Batchtown Chicago prom limo .. Lockport Chicago limo O’HareAs a webmaster you already know how important it is... Read More
So how do you know when your graphic designer costs... Read More
Your website is your tool for showing the online community... Read More
You're almost set. The content of your website, e-book, or... Read More
(1) Create a Direct Response Website, with the minimum number... Read More
Argh, where's the contact button?! Believe it or not, some... Read More
There are literally thousands of different options, styles and formats... Read More
Every day internet marketers are inundated with the latest fad... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Does your website make you any money? Does it SAVE... Read More
I ask myself that question about once a month.My website... Read More
A client asked me, at what point do you change... Read More
Customers will form an opinion of your business as soon... Read More
The importance of choosing your website keywords carefully is very... Read More
In my web surfing adventures, I've found a few site... Read More
Novice and professional designers alike ? you may probably be... Read More
Sin #5Poor Spelling And GrammarWe all make mistakes when we... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
What's happening to good web site design? Somehow we creative... Read More
Are you building a direct sales or mlm business online?... Read More
Just about every list of the "Top 10 Web Design... Read More
Even if you're not an accomplished webmaster you can still... Read More
Even after you've managed to bring traffic to your site... Read More
Thinking about designing your own website? Think again about adding... Read More
Internet Explorer, created by microsoft has been the most popular... Read More
shuttle from Midway Munster are ..I ask myself that question about once a month.My website... Read More
An attractive and user-friendly Web site is crucial to attracting... Read More
With the advent of the Internet a whole new vista... Read More
When your company built its website, did you think about... Read More
There are many different website design companies, offering different facilities... Read More
Whenever singer John Mayer sings his romantic song, "Your Body... Read More
Unarguably, the most important part of your website is content.... Read More
This is my second article on maximising web site viewability.... Read More
So you want to build a website here I will... Read More
If you have a business, big or small you may... Read More
You have probably viewed many Flash-based components while surfing the... Read More
If you have a business, big or small you may... Read More
The solution lies in creating a 'Database driven website', through... Read More
Navigation must be simple. Since it's the backbone of your... Read More
Imagine you're going on a blind date. You've heard wonderful... Read More
So how do you know when your graphic designer costs... Read More
Do you want to use unsafe web colors without offending... Read More
Developing a software application is not easy at all; apart... Read More
You have good traffic, but low client sign ups and... Read More
Just what is web copy? Some people think that web... Read More
If you are trying to sell a product or service... Read More
There is nothing wrong with making your own website if... Read More
We've all surfed the web and seen some awful web... Read More
Automating your online business is one of the most important... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
Web Design |