Sunday, September 6, 2009

Using server side includes to simplify web design

Using server side includes to simplify web design An "include" file is a piece of code that can be put into a separate file - for example - your navigation bar - and then "placed" in a number of other pages. This has the advantage of great utility that allows you to maintain consistency in a large number of pages, and then make changes on every page with just changing the include file.For example, which means that each page of your website to include a short paragraph that uniquely identifies your website. Usually we call this a "site-id." I would say something like: ForSaleTours.com - provides information and sources of virtual tours of buildings. He explains the various methods of combining video and audio to produce virtual representations of your house to increase its value and shopping experience for potential buyers better than what might otherwise appear to be.To in a hosts file as " understanding ", which normally have to do three things: 1. Make sure your server allows SSI (Server Side Includes). If your site has access to the control panel must be capable of this. Or, ask your web host technical support people.2. Create a "host" the file and give it the extension of a file to the server recognizes that contains the file. The extension is common. Shtml3. Create your own include file. This rule may take any of a number of different extensions:. Html,. Htm,. Php too. Txt. This is the file that is included in other files.4. Enter the correct code in your. Shtml file to point to the include file. If the include file and host file are in the same folder on the server, and will include :<!--# file = "file_name.html" -> If the include file is in a different folder (on the same server), the code will look like this include :<!--# virtual = "folder_name / file_name.html" -> In the example above, you must ensure that the relative path to the include file is in accordance correctly.Now when you want to make a change, for example, his "ID site ", just change the include file (once), and this change will be in all the towns on pages that include file.Include file that can be put to many creative uses that allow things that would otherwise have been very convenient. And if you have a website with a large number of pages, this technique can save a lot of time.For more than web design and online marketing tips see the Linknet Marketing Resource LibraryRick Hendershot is a marketing consultant, writer and editor living Inteet in Conestoga, Ontario, Canada. Posting multiple websites and blogs, including the Linknet network of websites. The network provides an inexpensive way to advertise your website and receive up to 100 connections at low cost.

No comments:

Post a Comment