SavingYourTime
     

Search Product
Enter Keyword
 


Search the Marketplace

























Full Article SavingYourTime.com Articles RSS Feed Information RSS Feed Information | Search Articles | Submit Your Articles


Server Side Includes Save You Time Published on 17-12-2004
By Case Stevens



Resource
Website URL




SSI stands for Server Side Includes.

Basically this means that the server (computer) adds an include into another file that resides on that server.

This include can be a lot of things, but in this article we're going to talk about files.
HTML files to be precise.

Let me explain.

If you ever designed a website, you discovered that great parts of every page are always the same.

The menu, headers and footers for instance. It's repeated on every page. So, what happens if you forgot something there or if it contains an error or if want to add a link.
You have to update all the pages that contain your menu, right?

Not with Server Side Includes.

How?

Well, you simply copy and paste your menu into another file e.g. menu.html.
On the pages where you want your menu to show you just put a SSI statement like
.

When your pages are retrieved, just before they are shown the server will include the menu.html right at that point in your page. Nobody will ever see in your pages, not even when they look in the source, because the server replaced it by the included file.

See for yourself. Go to
http://www.anownsite.com/internet-marketing/index.shtml
(just an example, any page on http://www.anownsite.com/ will do).
See the menu at the right? See the footer at the bottom?
All Server Side Includes!

Neat uh?

You can do the same with headers and footers or any part of your web pages that is standard across your site. Now if you want to change or update anything within these standard parts, all you have to do is change one (1) file, upload it and presto ....
you're done, your whole site is updated!

That will save you a lot of time and you are more flexible.
More importantly, it forces you to think about your web design upfront.

How to put Server Side Includes into action?

Well first your host must allow them. Some hosts don't. In that case find another one.

Second, I always design a web page (and leave it at day or two) and then decide which parts of this page will be standard across the site. Generally this will be headers, footers and menus.
Then I copy each standard part and paste it in a seperate file, appropriately named header.html, footer,html and menu.html. I save them in my root directory, so I can refer to them as (if you put them in other directories, you should reflect that in the include statement, because virtual here points to the file path/name relative to the base directory of the HTTP server)

Third, for SSI to work you need a text file called .htaccess in the directory you put your HTML file in. The file .htaccess must have the following line in it:

AddType text/x-server-parsed-html .html

For this to work you should consult with your webhost. Maybe there are different setting necessary.

And finally, you must use the extension .shtml or .shtm for all the pages that you create with an include statement.

That's all.

If necessary, use the term "ssi tutorial" in your favorite search engine for more information.

Try it. It will save you lots of time.

Wish you success.
Case Stevens

=============

Article by Case Stevens, of http://www.anownsite.com/.
Sign up for his Affordable Online Strategies Newsletter
Featuring understandable, successful low cost Internet
marketing techniques, ideas and strategies, articles,
news, tips & tricks and interesting (free) downloads at
http://www.affordable-online-strategies.com/







Submit Your Articles Read more articles




Need content? Give your website visitors quality content to keep them coming back and save yourself tons of time by not having to write your own.

Just add any of these simple codes to any page on your website and all syndicated articles will be automatically updated on your website by us.

Please click here for help in using these codes.

Simply click inside the window below or click the Button, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a file in which you want to display the articles.

PHP Version
  
Display the 5 Most Recent Article Headlines.

  Display the Most Recent Article.

  Display Random Articles.

Display articles for specific keyword. Please replace the word "test" with your keyword while using the sample code.
JavaScript Version
  
Display the 5 Most Recent Article Headlines.

  Display the Most Recent Article.

  Display Random Articles.

Display articles for specific keyword. Please replace the word "test" with your keyword while using the sample code.



List Building, a Ferrari & Bonuses!
Wealth Blog
VIP Software
Protect Your Online Assets
Membership Site Management Software
List Building Club
 
Home | Member Login | Join Now | SYT Dash Software | Member Streaming Videos | Member Streaming Audios | Member Downloads | Elite Streaming Videos | Elite Streaming Audios | Elite Member Downloads | Elite Member Perks | Recomended Resources | Articles / Content | Meet the Webmaster | Sitemap | Terms and Conditions | Privacy Policy | Contact us | White Listing