Harmony Hollow Software Special web hosting offer - LIMITED TIME ONLY


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.

Add to these social bookmarking sites:

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Folkd Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icio.us Add to: Reddit Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Spurl Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Information

MORE RESOURCES:

Spencer Web Design gets $25000 loan
Bizjournals.com
Spencer Web Design, a web design, development and Internet marketing services business in St. Peters, Mo., has been approved for a $25000 small business ...

and more »


Web design chennai | Web designing company chennai | Website development ...
BigNews.biz (press release)
Dmaxcreative offers professional, affordable web design and Web development services in Chennai India. Whether are looking to build your first website or ...



Locating A Great South Florida Web Design Service In Miami
BigNews.biz (press release)
If you live in Miami, locating a good South Florida web design company to build your website can seem like an impossible task. ...

and more »


MindSmack.com Awarded the Best Web Design Agencies Ranking by ...
Online PR News (press release)
bestwebdesignagencies.com, the independent authority on the best web design companies, released the March 2010 rankings of the top web design agencies. ...
Hudson Horizons Ranked as the Best Web Development Agency for March 2010 by ...Online PR News (press release)

all 2 news articles »


Fast Pitch Press (press release)

New Directory for the Mind Body and Spirit Community
Fast Pitch Press (press release)
Giving Mind-Body-Spirit businesses a free listing: Frank Gomez, a Sarasota graphic and web design professional, has created a complimentary online directory ...

and more »


Sports Briefs: Hall of Fame offering scholarship for Web design
Gaylord Herald Times
GAYLORD — The Greater Otsego Sports Hall of Fame is looking to develop a Web site and is enlisting local high school students to help. ...



Web design class set at JCJC
Hattiesburg American
ELLISVILLE – Jones County Junior College's Advanced Technology Center is offering a Web Design Basics course using Adobe DreamWeaver CS4. ...

and more »


Web Design Company Launches New Design Packages
PR-USA.net (press release)
"Our job as a web design company is to take the complex and to make it simple - and these new design packages is one exciting way that we are doing just ...



Cincinnati Web Design - Web Usage Mining for Personalized Websites
I-Newswire.com (press release)
(I-Newswire) March 19, 2010 - The reason being older versions are a lot easier to hack. Because, when a version goes out of date, the developer stops ...



Business startups receive city loans: Restaurant, Web design firm get capital ...
TMCnet
18--The city of Kokomo is partnering with a new local restaurant and a Web design firm in an attempt to bring startup jobs to the City of Firsts. ...


Google News

Home | Site Map
© 2006