Webmaster Tutorials - Web Design
Webmaster Resource Directory | Contact Us | Submit Your Site

LEARN

BUILD

PROMOTE

SELL

MANAGE

GET LISTED



Using Server Side Includes to Simplify Your Web Design


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.


More Web Design Articles

Build Web Pages from the Top Left Corner Down
There are two important reasons to build your website from the top left hand corner down.The first one is that this is the way people (at least in the western world) read pages.

Make it Clear What Your Website is About
Just about every list of the "Top 10 Web Design Mistakes" includes at least one reference to either1. Not clearly specifying the objectives of your website, or2.

Website Savvy: 10 Key Steps to Turn Your Customers ON!
?How to turn ?slightly interested? customers into ?I?ve got to have it!? customers!?I am truly amazed as to the lack of information websites contain. You would think that a business would realize that a potential customer would at least like to know how to contact the customer service department.

The Secrets of The Shriekers
I am constantly bombarded with all sorts of advertisements, single-page sites, and sites offering very little real content but some wonderful new "product" or "service" for sale that purports to make its customers wealthy beyond their wildest dreams.For the purposes of this article, let's refer to Amazing Formula (http://www.

How To Rescue Your Graphic Design Project When All Else Fails
Whether you're giving a critical sales presentation to a client, producing visuals for a meeting, event, trade show or seminar, or unveiling the new company logo before an audience of shareholders, top-notch graphics will help ensure that you, your products, and your message receive the attention they deserve.Yet when you decide to do the graphics in-house to reduce turnaround time or cut expenses, those logos, photos, charts, graphs, pictures, timelines, illustrations, etc.

Positive Design Attributes for a Successful Website
Designing a website is hard job, and requires you to think out a plan of action, and put in a lot of work to make it successful. There are many different kinds of websites on the Internet, but if you look at all the top performers with high traffic, you will notice that they all have similar design characteristics which place them as the best in the world.

Bad Design Characteristics For A Website
Making a poorly designed website is one of the easiest things you can do as a webmaster! You barely need to try! If you want to run a successful high traffic website there are many different elements of design that you need to implement, and ones you need to avoid.This article will describe some of the major design flaws in many new websites.

Make Artistic Graphic Designs
Are you a student of graphic design? If you have taken time in extra reviews and put ?graphic design? and ?drawing? into any search engines, you?ll get almost the same result = descriptions of graphic design programs at many design schools. Baffled? Well, it?s like this: As a student interested in graphic design, you have to take drawing and not actually a degree in fine art.

Creating Your First Website
Building your first website can be very frustrating. It looks fairly easy, but almost always turns out to be more complicated than you expected.

Ten Fatal Mistakes That Make Web Sites Stink
Since you?ll spend lots of time and money to create your web site, don?t you want to make sure you?re not making mistakes that at best irritate users, and at worst make you lose customers?After all, when you alienate users, you lose potential revenue. Who can afford that?Dr.




Helpful Tools

NetDownload
freeware and software downloads

Findahost
web hosting directory

FindaTechJob
new computer jobs daily

ManagedHostingPro
Managed Hosting and Colocation

Free Movies



© 2007 webmasteredge.com