Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

articleSaving Time With Server Side Includes

There are many ways to save time if you’re a web designer. Templates and cascading style sheets are two of the most common ways for a web designer to save time. The third is Server Side Includes. While sounding very technical, this is a very easy way to save yourself from repeating information and code when you have a website with ‘samey’ or repetitive text, images and so on.
There are many ways to save time if you're a web designer. Time, after all, is money - and saving time also eliminates some of the more boring jobs when coding with Dreamweaver. Templates and cascading style sheets are two of the most common ways for a web designer to save time. The third is Server Side Includes. While sounding very technical, this is a very easy way to save yourself from repeating information and code when you have a website with 'samey' or repetitive text, images and so on. Since most websites do repeat themselves in places, it's always good to know that there's a small, easy solution.

What is a Server Side Include?

An example - most websites have the same menu bar at the top, or perhaps the same writing at the bottom - copyright information, privacy policy or contact details. Once you've written the code for this, you don't want to repeat yourself for every page in the site. Even if you were using a template, you would still have to make the alterations when uploading the site to the server (giving each 'spawned' page from the template a new file name, for starters). Using a Server Side Include means that all pages are changed simultaneously and you only need to update one page - not them all.

The clue is in the name - you write the code, upload it on the server, and it includes it on the side, without any further input from you, the designer.

How to Use Them

Server Side Includes can be any 'standard' design page - html or asp. Include the code (usually just one line), in the page that you want the code to be operable in (usually all of them, in case of future updates).

Then there's an 'include file' - when you make a change to it, the rest of the pages follow suit, and the beauty of this is that it's at server level, rather than designer level, so you don't have to do any additional work (that's always a bonus, right?). In Dreamweaver, there's a built-in function for this, found under Insert - Server Side Includes. Then choose your include file and away you go.

Some Caveats

Although a reasonably flexible tool, Server Side Includes won't work with any other files apart from HTML or ASP extensions. Also, your include file shouldn't have any of the classic html, head or body tags within it since it should consist of code and code alone, or else the server may read it incorrectly. Another caveat is that with ASP, make sure you're sticking to that extension for security purposes - you don't want to inadvertently create a hole in your security with this little piece of unsecured code. Finally, all the file paths must be relative - but you knew that already, right?

Conclusively, Server Side Includes are never going to replace more advanced coding tools like CGI in webpage design, but it's a useful weapon to have in your Dreamweaver design arsenal.

Author is a freelance copywriter. For more information on dreamweaver, please visit http://www.microsofttraining.net


Original article appears here:
http://www.microsofttraining.net/article-705-saving-time-with-server-side-includes.html


Back to article list

Distribution notes

PUBLICATION GUIDELINES

  • You have permission to publish this article for free providing the "About the Author" box is included in its entirety.
  • Do not post/reprint this article in any site or publication that contains hate, violence, porn, warez, or supports illegal activity.
  • Do not use this article in violation of the US CAN-SPAM Act. If sent by email, this article must be delivered to opt-in subscribers only.
  • If you publish this article in a format that supports linking, please ensure that all URLs and email addresses are active links, without the rel='nofollow' tag.
  • Software Training London Ltd. owns this article. Please respect the author's copyright and above publication guidelines.
  • If you do not agree to these terms, please do not use this article.

Rate this page:
2.8/5 (129 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training