Casual Articles
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > A Beginners Guide to Server Side Includes

Tags

  • perfect
  • things
  • something
  • automatically update
  • imaginary freelancer

  • Links

  • Adventures in Peru - Registering a Car Bought in Tacna
  • UNICEF Gives Hope to People of Palestine
  • Do You Need an Internet Marketing Coach?
  • Casual Articles - A Beginners Guide to Server Side Includes

    On-line Buyers, Save Your Credit
    Most products and services sold on-line have credit card payment features, to make the purchase as compulsive and immediate as possible. Every day there are hundreds of new on-line buyers who spend happily and pay as they can, slowly sinking into a quicksand of debt.Secure Servers Secure servers and hype are the perfect recipe for a financial disorder that seems to be growing day after day, as marketers perfect their homepages and sales copy to conform an infallible trap. From air tickets to vacation packages, from software to books and e-books to membership fees of certain sites, almost everything you can find on the net has a price tag. Unnecessary JunkIn other
    , the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the f

    Business Training Videos: Equipping Your Employees To Serve Better
    Business training videos are the most cost effective way to train your staff, be they working force or management leaders. The company has to make a one-time investment in the business training videos that come in various formats, such as VHS cassettes or CD’s in VHS or DVD formats. The business training videos are then stored in the company’s library and can be accessed for the training programs of management groups or individual managers who can take the video home as well. All they need is a simple video or DVD player or a personal computer to view the training video at any convenient time.Every company or business process, be they manufacturing or marketing a product or service needs some form of
    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 that the reader has no prior knowledge of scripting languages, servers, or any other advanced computer skills. This article will introduce the 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 all the code for your website is stored remotely on a computer called a server. On a very basic level, the server (remote computer) is just a place where you can store the files on the "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 on the 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 that the server functions as a storage place for our files, but it is important to recognize servers can also do things. Similar to the 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, what the server does when someone visits the root directory of your site; the server automatically loads your index page (e.g., index.html, index.php, index.asp). This is a very simple example of something that happens on the "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 to the "includes" portion of the equation. What are includes? Let's take our hypothetical web site that serves as an advertisement for our imaginary freelancer. Imagine that the 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 contains the code for the 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 update the 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 on the 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 are the types of situations where virtual includes can save you hours of time.

    What are we including on the server side?

    Perhaps it would be better to think of includes as "modules" that we can insert into our web pages. These modules (or "includes") are usually just text files that contain HTML code (although they can be other file formats). The code inside these files can be inserted anywhere in a page simply by using an include command. For example, imagine for a moment that our freelancer had the foresight to realize that the navigation menu would change at some point in the future. Instead of putting the code for the navigation menu into each individual page, the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the fi

    Handling The Customer from Hell : How Can You Turn the Tide In Your Favor?
    Almost anyone who has worked with the public has a horror story to tell about a difficult customer. I'm talking about a particular type here: the usually loud, upset, sometimes aggressive or intimidating ones. Having worked in Customer Service roles for two decades, I've had my fair share, especially when I worked in a Returns Department.Over the years I've found that there are right and wrong ways to deal with them, and the route you choose can mean the difference between them leaving happy or vowing never to spend another penny with your company again. Here are some suggestions that may help you the next time you're faced with The Customer from Hell.Do's and Don'ts to Keep in Mind When De
    ibly 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 on the 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 that the server functions as a storage place for our files, but it is important to recognize servers can also do things. Similar to the 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, what the server does when someone visits the root directory of your site; the server automatically loads your index page (e.g., index.html, index.php, index.asp). This is a very simple example of something that happens on the "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 to the "includes" portion of the equation. What are includes? Let's take our hypothetical web site that serves as an advertisement for our imaginary freelancer. Imagine that the 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 contains the code for the 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 update the 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 on the 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 are the types of situations where virtual includes can save you hours of time.

    What are we including on the server side?

    Perhaps it would be better to think of includes as "modules" that we can insert into our web pages. These modules (or "includes") are usually just text files that contain HTML code (although they can be other file formats). The code inside these files can be inserted anywhere in a page simply by using an include command. For example, imagine for a moment that our freelancer had the foresight to realize that the navigation menu would change at some point in the future. Instead of putting the code for the navigation menu into each individual page, the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the f

    22 Important Pages to Include on Your Website
    Wondering what pages to include on your website and why? Here is a list of important information that should be included on your site.Before you start thinking about what to write, it is important that you create a plan, which outlines what each page will contain. That way you won’t repeat yourself or forget vital information. The most common pages on successful websites include:1. Home Page (First Page) This is your “sales” page and should provide information about what you can do for your customers. It should also give your visitors a brief overview of what they can find on your site.2. Products / Services It is useful to have a separate page for each produ
    erver automatically loads your index page (e.g., index.html, index.php, index.asp). This is a very simple example of something that happens on the "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 to the "includes" portion of the equation. What are includes? Let's take our hypothetical web site that serves as an advertisement for our imaginary freelancer. Imagine that the 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 contains the code for the 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 update the 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 on the 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 are the types of situations where virtual includes can save you hours of time.

    What are we including on the server side?

    Perhaps it would be better to think of includes as "modules" that we can insert into our web pages. These modules (or "includes") are usually just text files that contain HTML code (although they can be other file formats). The code inside these files can be inserted anywhere in a page simply by using an include command. For example, imagine for a moment that our freelancer had the foresight to realize that the navigation menu would change at some point in the future. Instead of putting the code for the navigation menu into each individual page, the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the f

    Agro Textiles: A Novel Application
    A textile fabric has a long history of application in agriculture. The word "agrotextiles" now is used to classify the woven, nonwoven and knitted fabrics applied for agricultural & horticultural uses covering livestock protection, shading, weed and insect control, and extension of the growing season. Agrotextiles help to keep sufficient soil humidity and increase the soil temperatureThe textile materials mostly produce by synthetics in various decompositions, utilized in the mode of either woven or nonwovens. The fabric form is broadly utilized in the places where tensile strength and dimensional stability are measured to be compulsory for caring the plantations from natural circumstances.The
    navigation bar code. A month later our freelancer wants to add a self-written article to his site. Once again every page on the 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 are the types of situations where virtual includes can save you hours of time.

    What are we including on the server side?

    Perhaps it would be better to think of includes as "modules" that we can insert into our web pages. These modules (or "includes") are usually just text files that contain HTML code (although they can be other file formats). The code inside these files can be inserted anywhere in a page simply by using an include command. For example, imagine for a moment that our freelancer had the foresight to realize that the navigation menu would change at some point in the future. Instead of putting the code for the navigation menu into each individual page, the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the f

    Unemployment Survival: Creating a Sense of Security
    In a time of economic downturn, international turmoil, company restructuring and corporate mergers run amok, thousands of people are either out of work or fearful of losing their jobs.Is there, then, such a thing as job security?No job, in itself, is totally secure. Governments cut back, unions have periods when they have no work available for their members, directors and CEOs are forced out, self-employment ventures fail. Even the most coveted and powerful position in the world, the Presidency of the United States, only lasts 4 or 8 years.Your only job security lies in self-security. Knowledge and appreciation of your value as a worker: your skills, your competence, your personal quali
    , the freelancer placed this code into a separate file. For the sake of example, we can call this file nav-menu.html Our freelancer can now simply place an "include" command that refers to the nav-menu.html anywhere he/she wants to place this menu. The advantage of this is becomes apparent when our freelancer needs to modify the navigation menu. Just one file needs to be edited, nav-menu.html, and all the pages containing "include" refering to this file will automatically update themselves. This time savings is the primary advantage of using includes.

    OK, I get it, but what does an include look like?

    Even though this is not a "technical" article, many of you are probably wondering what an "include" looks like. Therefore, one example for PHP is included below. Please note PHP is just one type of scripting language that can be used, depending on what your server is running. In this example, the code contained in the file "nav-menu.html" will be inserted into any web page where the following code is placed:

    <center><img src="http://www.kabooli.com/articles/web-site-design/ssi.jpg" alt=""></center>

    Keep in mind that, for technical reasons, server side includes will never be visible when you view the source code for a page in your browser. This is because the include happens on the server (before presenting the resulting code to the browser). This makes the use of SSIs invisible to browsers, bots, spiders (which is why they are search engine friendly)

    Summary

    The catch-22 of server side includes is that the need for them only becomes apparent when faced with the task of updating tens or hundreds of pages of code. There are many resources on the web that will instruct you how use virtual includes, and procedures will vary depending on the type of scripting language supported by your server (e.g., ASP, PHP). Hopefully you now understand Server Side Includes and how they can benefit the webmaster.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.casualarticles.com/article/87497/casualarticles-A-Beginners-Guide-to-Server-Side-Includes.html">A Beginners Guide to Server Side Includes</a>

    BB link (for phorums):
    [url=http://www.casualarticles.com/article/87497/casualarticles-A-Beginners-Guide-to-Server-Side-Includes.html]A Beginners Guide to Server Side Includes[/url]

    Related Articles:

    Create a Professional, Attention-Getting Brochure

    Interesting Ways To Make Money Online Without Investing A Dime

    Build Website Traffic With Foreign Keywords

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com