Using Server Side Includes to Simplify Your Web Design



Get Web Design Tips and Tricks on mps-web-design.com. Using Server Side Includes to Simplify Your Web Design topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

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



Hot* Brand New: AdwareAlert. - Our Highet Converting/Paying Designs Ever! Easy Ppc Sales! Also try SpywareRemover.com. Now with Msn/Goog/Yhoo Tracking!
Go Up Strong! - Increase Your Vertical and Teach Yourself to Dunk in a Matter of Days using this Revolutionary New System!

One of the biggest dangers as a web designer or website owner is to stereotype your users and so misjudge their needs and attitudes.


Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Build Your Site the RIGHT Way
Building a website and creating web design is as easy as eating popcorn. But the ask is - was it done the right way? If you want to learn the secrets of a well-made website, let me give them to you... 1. Plan ahead of time. Plan. Conceptualize. Think of an idea that will make your site standout. Think of strategies that will keep the people from visiting. That way you can secure a good traffic for your web site. 2. Lure visitors with your web design. Choose the right colors, layout and content…

2. Web Site Design Mistakes - Database Parameters In URLs
Creating a web site takes thought, planning and execution. Unfortunately, many designs are dead in the water before they are even published as far as search engine optimization is concerned. Whatever you do, avoid these critical mistakes.Database Parameters in URLMany web site designers don’t take into account the effect of database parameters in site URLs. A database parameter tells the server what should be loaded onto a particular page when a viewer tries to see it. In essence, the page is “d…

3. Does SEO Marketing Really Work?
SEO Marketing or Search Engine Optimization not only works but in fact is highly effective and has been responsible for transforming many unknown web sites into popular destinations on the World Wide Web today. To date no other online marketing tools or methods have proved to be anywhere near as effective as SEO marketing techniques. This is hardly surprising when a vast majority of the traffic that visits web sites is still coming from search engines. SEO marketing is centered on search engines…

4. Hacked Off with CSS? By Andrew Faulkner
For those not familiar with CSS Hacks, they are ways of using styles/classes that only apply to particular browsers. They are used to overcome the display problems mentioned previously by exploiting CSS structure and code. Most involve simple punctuation tricks to fool the problematic browser into accepting a different style to the browsers that display correctly.CSS Hacks work, but there are two main points to consider.Firstly, the validity of the CSS may be affected. Invalid CSS hardly seems…