Web Design Information

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:

Web design firm's span reaches from Dnieper to Danbury
Danbury News Times, CT - Dec 1, 2008
... a city in western Ukraine near the country's border with Poland, got the idea to start the firm while working for another Web design outfit in Stamford. ...


Web Design Training – Spring Semester
Marywood University News & Events, PA - Dec 1, 2008
A two-part workshop in web design will be offered on Tuesdays, 1:30 – 3:00 pm beginning January 13. Part A: Introduction to Web Design (Jan 13 – Feb 24) – a ...


Corpus Christi Web Design Now Available – WebDesignRush.com is Live
PR-CANADA.net (press release), Montenegro - 14 hours ago
We’re catering to small businesses in Corpus Christi and surrounding areas to bring affordable web design to small businesses. Web Design In Corpus Christi, ...


Web design & FOSS
ZDNet UK, UK - Dec 1, 2008
Having just moved house, I had the interesting experience of being without a telephone handset. And my current mobile provider 3 [% coverage] can't always ...


Extra Cash for the Holidays or Anytime With the Launch of Diamonds ...
MarketWatch - 15 hours ago
Bayshore Solutions' award-winning Web design team utilized their Microsoft Gold Certified development capabilities along with their interactive marketing ...
Extra Cash for the Holidays or Anytime With the Launch of Diamonds ... International Business Times
Businesses Thrive Amidst a Recession Thanks to Live Help TMCnet
all 11 news articles


Mercy student 'wow's' in web design contest
Mirror, MI - Nov 30, 2008
Mercy High School Junior Michelle McCarthy was awarded first place in the 2008 Michigan Council Women in Technology Foundation web contest held at Lawrence ...


Web 2.0 principles for good web design
Bizcommunity.com, South Africa - Dec 1, 2008
Web design can be deceptively difficult, as it involves achieving a design that is both usable and pleasing, delivers information and builds brand, ...


SEO and Web Design are "Recession Proof"
About - News & Issues, NY - Nov 28, 2008
Silicon Alley Insider -- a group blog focused on the New York startup scene -- published a post today titled Recession Winners: Web Designers, SEO. ...


Three day Web design Conference will be held in Boston December 8 ...
PR-Inside.com (Pressemitteilung), Austria - Dec 1, 2008
2008-12-01 15:45:33 - December 8-10, 2008 - a tremendous event in the field of Web design and technologies will take place at Westin Copley Place in Boston. ...


David Cosgrove Los Angeles Web Design Wins Top Honors in Business ...
Press Release 365 (press release), FL - Nov 27, 2008
SIMSBURY, CT -- David Cosgrove Los Angeles Web Design has been recognized by StartupNation (http://www.startupnation.com) as one of the top businesses in ...

Web-Design - Google News

home | site map
© 2006