lazybrick.com lazybrick.com
   Home Page -> About Us -> Privacy Policy -> Terms of Service -> Place Your Link -> Add Article
Search:   
Add Url
 

Travel & Accommodation

Careers & Employment

Property & Estate

Business & Companies

Music & Entertainment

Art & Culture

Self Healing

Society & Communities

Sports & Adventure

Games & Play

Healthcare & Treatment

Fitness & Health

Computers & Software

Finance & Investment

Home Family & Garden

Technology & Science

Education & Reference

Relationship & Lifestyle

Children & Teens

Law & Politics

News & Events

Automobiles

Drink & Food

Malls & Shopping

 

Home Page › Computers & Software › Web Design & Development
 

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

Author: Rick Hendershot
 
Author Bio:

Rick Hendershot

Rick Hendershot publishes a number of websites and blogs. This includes the Linknet Marketing Resource Library which is a collection of hundreds of specific articles and tips on Marketing, Web Design, Blogging, RSS Feeds, and numerous other topics relevant to online marketing.

 
 
 

Related Articles

 
How B2B, or Not B2B?
 
Record Your Own Music withTotally Free Software
 
Controversial Blog Debate Over Miss Spelled Words in Online Article Titles
 
Starting a Business
 
Super Affiliate Strategies Part 3
 
Top 10 SEO Copywriting
 
Use Articles To Promote Your Site, It Works!
 
How to Make Money With Your Email Campaign
 
Domain Registration And Hosting For A Successful Web Presence
 
The Differences Between Short Run And Long Run Cd And Dvd Duplication And Replication
 
 
 
 
 

All About Your Computer's BIOS

Confused by the computer BIOS? This little handy guide will tell you all about it and how it works. - Gary Hendricks
 

Could This Be The End of Sp^am?

The war on sp^am has so far been waged on two fronts: legislation to make sp^am illegal and filters ... - Michael Southon
 

The Ultimate Search Engine Optimization (SEO) Marketing Guide

Here you will find the ultimate online marketing solution for your existing businesses. - Bhupinder Singh
 
 

Use Articles To Promote Your Site, It Works!

If you are looking into the different options and ways to promote a website you should seriously con ... - blueboy
 

Three Solo Ads Secrets That REALLY Work

Solo ads are still one of the most powerful ways to advertise your site, product, special report, bl ... - Tim Bossie
 
 
Home Page -> Privacy Policy -> Terms of Service
Copyright © 2008 www.lazybrick.com