Web Design Information courtesy of EnhanceYourPC.co.uk


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 RESOURCES:

MLB.com, iSchool team up for web design contest
SU The Daily Orange (subscription)
A contest in the School of Information Studies could bring students face to face with executives from Major League Baseball, as well as provide ...



Web design and page 1 google
Online PR News (press release)
Online PR News – 07-September-2010 – We are proud to announce that as on today 8/9/10 hopping mad designs is on page 1 for the keyword web design. ...
Phoenix, Arizona Computer Repair Company My PC Techs Announces New Web Design ...PR Web (press release)
Web Design | Hopping Mad DesignsPRWire
Page 1 for Web DesignPRWire
PR Urgent -lonad News -Helium
all 15 news articles »


Ann Arbor Web Design Firm, MetaSpring, Now Offering Affordable Website Packages
PR.com (press release)
Ann Arbor, MI, September 09, 2010 --(PR.com)-- In response to the cautious recession economy which has led to a decline in large-scale web design and ...



Web Design Company Makes Waves With Top-Notch Work
Release-news.com (press release)
A web design company providing professional web development services is making a name for its thriving business by offering utterly affordable and ...



New Web Design For Hostetler's Lawn Furniture
PitchEngine (press release)
Digital Hill is pleased to announce the new web design for Hostetler's Lawn Furniture of Indiana, serving the web design needs of the greater Warsaw, ...



New Web Design For Miller's Buggy Line Tours
PitchEngine (press release)
Digital Hill announces the launch of a new web design for Miller's Buggy Line Tours of Shipshewana, Indiana. 09.07.2010 – Digital Hill announces the launch ...



Best Web Design Services
AddPR.com (press release)
Since, your web design puts a summary of your whole business; it better be good enough to attract people and bring in more traffic. ...
Catering to all you internet marketing requirementsAddPR.com (press release)

all 5 news articles »


Wakulla High School Web Design Class Awarded First National-Level Contract
Wakulla.com
The Wakulla High School Web Design students were awarded their first national-level contract from NAMI-Wakulla, National Alliance on Mental Illness. ...



3PRIME Launches New Website for CT Web Services
VEE 2
CT web design company, 3PRIME has redesigned and relaunched their main website www.3-PRIME.com. The site went live on Tuesday, September 7th. ...



Ann Arbor Web Design Firm Introduces New Website Packages
Newswire Today (press release)
In response to the cautious recession economy which has led to a decline in large-scale web design and development sales, MetaSpring has announced the ...

and more »

Google News

home | site map
© 2007