Free Adobe Photoshop website templates by Colorifer.com. Web design articles
articles.colorifer.com - articles about web design

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:

Profit By Outsourcing, The Web Design India Company Sought to Sculpt The ...
DigitalJournal.com (press release)
The Web Design India company is also incorporating an authenticated “Wiki” on the lines of online free encyclopedia, the Wikipedia for user to post articles, have access to relevant information and keep themselves posted with the latest about the ...

and more »


Indiana Web Design Company Radically Changes Approach to Web Development
PR Web (press release)
Effect Web Agency, an Indiana web design company, redefines their entire develop process to focus on achieving sales results for clients. Effect Web Agency says they know why websites do not work for many businesses. Steve Schmidt, President and Web ...

and more »


DC Web Design Firm Blue Water Media Launches a New Website for the Public ...
PR Web (press release)
A Leader in Creative Web Design, Blue Water Media Assists the Public Media Business Association in Their Mission to Establish a Comprehensive Digital Resource for the New PMBA and its Members. The Public Broadcasting Management Association underwent a ...



New Digital Multi Media Program Coming to Brighton High School
Patch.com
By Nicole Krawcke Brighton High School Sophomore Evan Palmer works on an assignment during the first week in Web Design. Palmer said he took the class to learn how to make his own website. Brighton High School is getting a new career technical ...



HigherVisibility Named Eleventh Best Web Design Company by topseos.com for ...
Press Media Wire
The independent authority on Search vendors, topseos.com, has named HigherVisibility the eleventh best web design company in the online marketing industry for the month of February 2012. Their position in the rankings of top web design companies is ...

and more »


EQuicknews

Web Design Tips
EQuicknews
Launching а website іs bоth exciting аnd potentially rewarding. A wеll planned site can have а positive effect оn уour business, wіth online sales bucking thе trend in an othеrwisе downbeat economy. Creating a website can аlѕо bе a daunting task, ...

and more »


Industry Today (press release)

Calgary Web Design Firm Offers Exclusive Content Management System
Industry Today (press release)
Understanding the increasing demand for this system in today's business world iDesignit.ca a Calgary Web Design Company, is offering innovative solutions to small businesses in Calgary, Alberta and surrounding areas. iDesignit.ca specializes in ...



LeanPort Software Named Second Best Android Development Company by ...
Press Media Wire
The independent authority on web design and development, bestwebdesignagencies.com, has named LeanPort Software the second best Android development company for the month of February 2012. The list of the best Android development companies contains ...

and more »


PR Web (press release)

Algonquin Studios Shares Thought Leadership Reports on Web Design, SEO ...
PR Web (press release)
These are people who have started successful businesses, built enterprise-level software systems, and work hard to actively keep abreast of changes and advancements in technology, software development, web design, and online marketing,” says ...

and more »


Web development company in Indiana wants to increase businesses' sales
The Creative Department
Many small businesses struggle with search engine optimization and making their websites easily navigated, and an Elkhart, Indiana, web design company wants to help them. In a recent statement, Effect Web Agency outlined some of the main problems that ...


Google News

2007-2008 © Copyright colorifer.com. All Rights Reserved.
Free Adobe Photoshop templates.
Web Design Articles | Site Map | Terms of Use