A Beginners Guide to Server Side Includes

Written by Kabooli Directory Editors


An Introduction to Server Side Includes

Beginner? That's OK!

While much has been written about Server Side Includes (SSIs -also known as Virtual Includes) much of this information is designed for intermediate to advanced webmasters. This article is aimed at beginners. It is assumed thatrepparttar reader has no prior knowledge of scripting languages, servers, or any other advanced computer skills. This article will introducerepparttar 132331 reader to SSIs and explain how they are used in web site development. SSIs are guaranteed to save you time as your web site develops and changes over time.

Servers: just a place for your stuff?

It is important to understand that allrepparttar 132332 code for your website is stored remotely on a computer called a server. On a very basic level,repparttar 132333 server (remote computer) is just a place where you can storerepparttar 132334 files onrepparttar 132335 "net." These files would typically contain your web site's HTML code and possibly some files containing pictures or graphics. For example, a very simple web site might consist of 5 web pages with five corresponding files that are stored onrepparttar 132336 server. One file is named index.html and we will have four additional files. These files might be named about-me.html , education.html , resume.html , and portfolio.html. We'll say that this simple 5 page web site is run by a freelancer who uses this site as a kind of virtual advertisement.

Servers Part 2: more than storage?

We have established thatrepparttar 132337 server functions as a storage place for our files, but it is important to recognize servers can also do things. Similar torepparttar 132338 operating systems software on our personal computers, servers have software that allows them to access and organize files. Servers can also carry out more advanced functions. Take, for example, whatrepparttar 132339 server does when someone visitsrepparttar 132340 root directory of your site;repparttar 132341 server automatically loads your index page (e.g., index.html, index.php, index.asp). This is a very simple example of something that happens onrepparttar 132342 "server side."

Why do I need includes?

Now that we understand that remote servers have software on them capable of carrying out certain tasks, we can turn our attention torepparttar 132343 "includes" portion ofrepparttar 132344 equation. What are includes? Let's take our hypothetical web site that serves as an advertisement for our imaginary freelancer. Imagine thatrepparttar 132345 freelancer designs a left hand navigation menu so that people can easily browse all five pages of his site. Therefore, each page of this site containsrepparttar 132346 code forrepparttar 132347 navigation bar. Imagine that a few months after launching this web site, our freelancer wants to add a Frequently Asked Questions page. Our freelancer now has to updaterepparttar 132348 navigation bar code in each of his five existing pages. Now there are six pages with this same navigation bar code. A month later our freelancer wants to add a self-written article to his site. Once again every page onrepparttar 132349 site needs to be updated. Imagine having a site with 100's of pages. Do you want to manually update 100's of pages of code? These arerepparttar 132350 types of situations where virtual includes can save you hours of time.

Building Your First Web Site?

Written by TQ


Creating your own site can be a satisfying experience. Here are some tips to help get you up and running.

Before doing anything onrepparttar technical side, you need some kind of basic idea to work with. I suggest first getting some paper and a pencil. Start by sketching a layout of how you would like your web page to appear. For example, a simple title atrepparttar 132329 top,repparttar 132330 area in which you would like any content, pictures and so on. Now its time to do some programing!

Don't letrepparttar 132331 word programing scare you. Anyone can learn and there are several sites that offer free tutorials. One such site is http://www.w3schools.com/html/default.asp. Although it is not necessary to be a top notch programer to build and operate your web site, you should learnrepparttar 132332 basics of html. I recommend that you thoroughly learn about tables. They are widely used and with them, you can create a professional looking layout (even as a beginner).

You can use any basic text editor, like notepad, to write, edit, and save your code (html). When saving your work forrepparttar 132333 first time, choose Text Document for type of file, then save withrepparttar 132334 extension htm (for example index.htm). Your home page (the first page people usually see) is normally saved as index.htm. To see how your page looks, double click onrepparttar 132335 file and it should automatically open up in your browser.

Now that you've got your web page ready to go, it's time to find a host (a place for your web page to live). Since this is your first site, I suggest you use Free Web Hosting. Some host will put advertising, such as banners, on your site asrepparttar 132336 cost of free hosting. Others won't but only charge you to register your Domain Name (www.YourSite.com). Be careful not to accidentally sign up for extras such as url protection, spam control, etc. (unless you feel you need them) as they will add to your cost. These sites will have a limit on bandwidth (how much data that can be transmitted per month), email accounts, and maybe a few other things, but are still great for first timers. If later on you feel you need more, then you usually can upgrade. To find a host, just use any search engine andrepparttar 132337 keyword phrase Free Web Hosting.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use