What is SSI?

Server Side Includes (SSI) is a simple server-side scripting language used in website. It is used to includes the contents of one file into another one dynamically.

You can use ssi by creating a file (left.ssi), and include the file where ever you want by using the code:

<?php include(‘ssi/left.ssi’); ?>

This will include the left.ssi located in the ssi folder. Why should you use SSI? Because it will save you a lot of time. If you have a code that will be used in many pages, then you need to use SSI. For example: your navivation should have the same code for all of your pages. Your index.php and your product page (product.php) will have the same navigation (menu) code. So you need to create a ssi file for your navigation code. Then include the ssi file in all of your files when needed.

If someday you need to add one menu, you don’t need to change all pages code. You only need to change the ssi code, and changes will be reflected to all pages. You should be using ssi file for your header, footer, adsense, ads place and navigation.

Share and bookmark:
  • RSS
  • Twitter
  • StumbleUpon
  • Technorati
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Reddit
  • Propeller
  • Google Bookmarks

Related posts:

  1. The Benefit of Using PHP Include Function in Optimizing Your WordPress Blog Theme
  2. Using Tab Panel Div in WordPress
  3. Creates your adsense templates for wordpress
  4. Protecting your pages with htaccess
  5. What is Awstat

0 comment(s)

  • Any feedback from you?

    This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

Oct 3, 2008 by admin

WEB HOSTING COUPON CODES:

HostGator 1-cent web hosting - Code: hgc25

HostGator 20% OFF initial order - Code: GREEN

GreenGeeks 10% OFF - Code: 10off

Want to set up your own web server at home? Read this guide

Super Green Hosting HostGator GreenGeeks WP Web Host green web hosting ad