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!



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.


2. Choosing a Web Designer: 11 questions you need answers to
1.) Find out where the designer intends on getting the illustrations for your site, and what their experience is in creating custom graphics. Ideally you would like to find a designer who creates their own custom art according to your needs and here is why. If the designer uses royalty-free stock images, your site won't be one-of-a-kind. They may only be used once by that designer but the entire www has an option to use this illustration too. In addition, there are many legal license issues you …

3. Web Marketing: Design Mistakes That Drive Customers Away In Droves By Lisa Packer
They may look cutting edge, but if you want a web site that contributes to your bottom line here are some design ideas you will want to avoid:· Opening with Flash. If your site opens with a movie that your prospect is forced to sit through, no matter how short, before they can get to your “welcome” or “home” page, you are losing customers. She wants information, and that movie is standing in her way. She may not wait to see what is on the other side.· A pretty “landing” page. If your prospect …

4. Web Source Web Design Tips - Open A Window on Page Load
The code below will open a new window when a web page loads. This window may be customized to any size you'd like. Place this code under the tag within your HTML.This window will have scrollbars and will be resizable. The height and width are set to 320, but may be changed towhatever you'd like. If you'd rather not have the scrollbars, you can remove the words 'scrollbars and resizable.'Tutorials - Photoshop,Dreamweaver,Vb.Net. - Photoshop, Dreamweaver, Excel, Flash Mx, Vb.Net, Spyware + Window…