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.
Culver prom limo .."It's good.""You've done a nice job.""I don't like it."At some... Read More
The landing page or entry page of your visitors is... Read More
There is nothing wrong with making your own website if... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
Are you building a direct sales or mlm business online?... Read More
Many websites make the mistake of being all flash and... Read More
1. Repackage your web site content in to different products... Read More
If you've a website that is not generating a lot... Read More
No, that's not the real question. The real question is... Read More
One visit does not make a sale. Be sure to... Read More
Ever browse across a website that took ten million years... Read More
If someone doesn't know you personally, will they trust you... Read More
If you think it's simply a case of who will... Read More
Chris, a new consulting client, asked me to help him... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
Everyday we hear that another company goes out of business.When... Read More
If you have a business, big or small you may... Read More
So your web site's online and you've got high rankings... Read More
Have you ever been to site with so much ad... Read More
If you are going to be placing ads on your... Read More
QUESTION: My business is very small, just me and... Read More
Color is one of the most important but least understood... Read More
Does your website make you any money? Does it SAVE... Read More
Nope. You certainly don't need a website.But you don't need... Read More
Hire a designer or a programmer for your website is... Read More
Wood Dale limo ..If you have a web site to which people pay... Read More
If you're not getting a lot of traffic to your... Read More
Well, a logo for your business. Why is it important?... Read More
We would all like to have the best looking website,... Read More
So you need a website. You are not sure if... Read More
There can be zillions of reasons why your visitors return... Read More
You have good traffic, but low client sign ups and... Read More
Are you looking for somebody to build you a website,... Read More
You may not believe it, but people still judge things... Read More
What dollar amount does your web site contribute to this... Read More
There are plenty of Drupal Modules that you can install... Read More
What is web usability & why is it important?Web usability... Read More
Your web site is like your car. Both are significant... Read More
Any kid, and their grandmother too, can make a webpage.... Read More
With so many different configurations internet users have their computers... Read More
Have you ever been to site with so much ad... Read More
Whether a business has just got off the ground or... Read More
Once, I attempted to create a favicon (the little graphic... Read More
This is my second article on maximising web site viewability.... Read More
A web site builder can be a real life saver... Read More
As search engine marketers, we spend an enormous amount of... Read More
What is a Website Template?Many smart and savvy businesses are... Read More
1. Don't load your web site with a lot of... Read More
Remember the day that you got your new computer (or... Read More
In the early years of the internet the actual design... Read More
Web Design |