Tuesday, February 5, 2008

Website Updates are a SNAP With Server Side Includes

If you ever had to make a change to your website that needed to be carried onto every page, you know what a tedious job it is.Well, have I got news for you. It doesn't have to be. Welcome to the world of Server Side Includes, also known as SSI. The best part about SSI is that it will make your life as a site owner 'oh so sweet.' You're going to want to kiss me after I give you the lowdown on this little beauty.

Let me give you an example. Let's say you have a site with over 50 pages and you need to add another link to your navigation bar. Can you imagine how long it would take you to open each page and update it? By putting your navigation bar into an SSI file, you would only open up that one file and update that -- and the change to your navigation bar will show up site wide. See how simple that was? By editing one file you have updated your entire site instantly.

The most common use of an include file is for your top navigation, your bottom text navigation, copyright, logo or any other piece of info needed to appear on all pages of your site.

So how do you create an SSI file? Glad you asked! An include file can be an HTML file or a simple text file. It should be whatever HTML coding you need for that element of your site, minus the or tags which should remain on your individual pages.

An easy way to make them is to design your web page and cut and paste the code you want into individual files and name them things like topnavigation.htm or bottomnav.htm. By giving them descriptive names, you'll know at a glance which file is which when it comes time to perform those updates.

After creating the files you plan on using as your includes, you'll need to open your web pages and insert a line of code where you want the SSI information to show up in your documents.

The code looks like this:

If your includes are located at the root level on your web server your path would look like this:

That's it. Pretty simple, really. After you get the hang of it you'll wish you would have learned about them years ago. They really do make global updating a snap.

Here are a couple of good sites to learn more about SSI:

Big Nose Bird-
http://www.bignosebird.com/ssi.shtml

CGI Resource-
http://cgi.resourceindex.com/Documentation/Server_Side_Includes/

New Breed Software
http://www.sonic.net/~nbs/unix/www/ssi/

Web Reference
http://www.webreference.com/programming/ssi/intro/

Before you start implementing SSI you need to ask your web host if they support them (most do), and also if they will need to be named with any special extensions. Some servers may require you to give them specific extensions like .asp (if it's NT) or .shtml (for many Unix servers). Although the majority won't, it's always better to ask first. Better safe then sorry.

By designing your website with server side includes you'll save yourself a ton of headaches when it comes time to updating your site. SSI is a Webmaster's best friend, so I suggest you spend some time getting acquainted.

Merle http://www.EzineAdAuction.com "Where some of the BEST Deals in Ezine Advertising are Made" Buy & Sell Ezine Ads in a live auction setting! Publishers sell off your excess inventory and Buyers pick up some Fantastic bargains. Go now.

Labels: , , , ,

Monday, December 3, 2007

Shared Web Hosting, Dedicated Servers And Virtual Private Servers


Many times those that are relatively new to web hosting terminology stumble into some confusion in their quest for a good web hosting plan. One of the major sources of this confusion may simply come down to what is what where web hosting plans are concerned.

In this article I will talk about three different types of web hosting and their differences. These types are shared web hosting, dedicated server hosting and virtual private server. They mostly vary wildly in price and altogether fill different needs as far as hosting plans are concerned.

Shared web hosting is a term used to refer to when a hosting company puts websites from many different users on one server. Every user is usually given some limit to the amount of resources their site is able to consume. When several sites on the same server get busy or a script on one site consumes extra resources the server can bog down, slowing your site.

Most shared hosting plans are very cost effective and if you get a good hosting company you may be able to avoid having your site bogged down by having too many users on one server. Many shared plans can be had for under $10 a month and come packed with features and possibly even free domain registrations.

Dedicated server hosting is the most expensive web hosting of the three. Instead of sharing a server with other users you are in effect renting an entire server for yourself. Usually, all of the resources of the server are at your disposal. Many times hosting companies give you several options for the type of server you can rent and the operating system it runs.

Dedicated servers are for either bigger sites or for the webmaster who has 200 web sites and is tired of paying for 200 shared hosting accounts. Shared or virtual private server hosting accounts usually can handle personal or small business sites.

A virtual private server in essence is a hybrid of a shared web hosting account and a dedicated server. Software on the server is able to break it down into multiple "virtual" servers. The effect is basically like having several servers on the same machine. You would be paying for one of these virtual servers.

Virtual servers allow you the flexibility of customizing your server settings as if you were renting a dedicated server but since you are actually sharing a server with other users you pay much less. Virtual private server plans are usually priced just a bit higher than shared web hosting.

When you search for hosting do whatever research you need to do to pick the plan that's right for you. There are thousands of sites offering quality information about web hosting that will help you to fill in any gaps in your knowledge and enable you to make the best possible decision.

Many hosting plans seem to offer the world on a string for a quarter. That's fine and all but what happens when they cram several hundred busy accounts on one server and your site loads 30kb of HTML in 10 minutes on a DSL connection?

There may actually be many different hosts that can be right for you. Whichever you pick will come down to your requirements for resources like bandwidth and storage space, your requirements for features like PHP and/or ASP, and your requirements for price and level of support. Have fun.

 

Hosting Fanatic Web Hosting Directory

Shared Hosting-Dedicated Server-Virtual Server

Labels: , , , , ,