Mar3rd

Templates VS Server Side Includes (SSI)

christophe php tips Read on

Hi everyone…

Yesterday I was thinking about how to save time when developing websites and I wanted to share my thoughts with you.

In order to save time when developing sites, one can use templates or server side inludes (SSI). But which is the best method??

Well, this is about what I am going to discuss in this post

To start, I will introduce these two terms, in case you don’t know what I am talking about.

Template : It is a common structure of a website that most of your pages uses. Usually web sites follow a standard structure, for e.g. you would have a header, a navigation bar and a footer that is common to all your pages

SSI : Server Side Includes allow you to write some commonly used code once and have the server insert it into the pages for you. In other words an include file has code that you would like to reuse.

Both of these method are good, but I think that in particular circumstances, one is better than the other…

Advantages of templates :

  • Imagine that your site has 25 pages. If you need to make one small change, let’s say adding a new link, you would need to go to each of those 25 pages and change it manually. But using a template you only need to change it in the template and all the pages get updated automatically.
  • While using softwares like Dreamveaver, Frontpage or Expression Web, you may find it easy to make changes with WYSIWYG.
  • As not all pages of your site has the same structure, you may find it an easy practise to create 2 or more templates (it’s up to you)

Disdvantage of templates :

  • Image you have a site of 50 pages. You need to perform a small change on the template…Now that the change is done, you need to upload the 50 pages…(not very pleasing when having low internet connecitons)

Advantages of SSI :

  • SSI includes helps to make wide changes on a website easily
  • It reduces FTP time up to 200% as you have no need to upload an entire site

Disdvantage of SSI :

  • You have no visual aid when updating a site

Well, considering the advantages and disadvantages of each, I simply suggest to use template when creating small websites (<10 pages) and SSI for bigger websites !

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Feb29th

Some tips to stay safe from SQL injections

christophe php tips, php Read on

Have you ever head of SQL injection? What is it?
Well, SQL Injection happens when a developer accepts user input that is directly placed into a SQL Statement and doesn’t properly filter out dangerous characters. This can allow an attacker to not only steal data from your database, but also modify and delete it.
Let’s have a […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Feb8th

Display a particular message when windows is booting

christophe Uncategorized Read on

Do you wish to display a particular message when windows is starting?
Microsoft has planned this functionality, but it is hidden by default…
Hence, we must modify some values in the registry. This is how to proceed :
Open the run dialog, and type regedit.
This opens the registry of windows. On the left arborescence, browse HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Feb4th

How to use multiple submit buttons on a single form

christophe php tips, php Read on

Generally, an HTML form takes only one submit button to send data.
If you want to know how to use multiple submit buttons on a single form, just follow this little ‘tutorial’.
First, you should create a form with 3 (or more, it’s up to you) submit buttons. Note that the 3 submit buttons have the same […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Oct22nd

LemOnline Wordpress Theme

This is a wordpress theme based on the green lemon. It is Called LemOnline.
Just try it.
Features:
- 2 Columns
- Fixed Width
- Green Theme
- Right Sidebar
- Header Images
Download here

Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Oct3rd

Things you should beware of on Google

Vincent seo Read on

There is an interesting article by Joseph Plazo about how to get DeIndexted from Google. If you follow the advice you will surely get banned from google. But why not do the opposite of what he is saying, this could boost your rank on google.
The article can be found here

Share and Enjoy:
These icons link to […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Oct1st

Passing php array variables through POST or GET

Vincent php tips Read on

Have you ever wonder if there was a way to pass variables inside an array to a POST or GET without having to pass one by one?
Or even to keep its array structure on the other side?
Here is a small trick that can make this possible. Here we will use the in built php function […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Sep28th

Win a 1024 GB hard disk

What would you do if you get a hard disk of 1 TB (i.e 1024 GB)?
Here is what I would do with 1TB of storage:
1. This will give me chance to start doing video editing, as this needs much sotrage to be accomplish. I could be doing a full 1h30 films instead of a 30 […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Sep28th

The power of internal linking

admin seo Read on

There is an interesting post Vandelay wrote on 3 Powerful Results from Internal Linking.
Here is a small excerpt
We all know that internal linking to your own pages and blog posts is important, but recently I experience some proof of this fact. Many of you have seen the post from about 2 […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb
Sep28th

How to extract POST data in one line with php

Vincent php tips Read on

Here is a quick trick in php that can save you time when you retrieve data from an html form.
Let’s say you normally have a form with name, surname, email and telephone number.

You would normally collect those informations in your script as such:
$name = $_POST[’name’];
$surname = $_POST [’surname’];
$email = $_POST[’email’];
$telephone = $_POST[’telephone’];
Then you just use […]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb

Calendar

  • July 2009
    M T W T F S S
    « Mar    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

About

Discount Web Design is a leading provider of affordable Web Design services and other Web Site resources to stimulate online business growth. The Web Site is a leading provider of bespoke Web Design solutions.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Wists
  • MisterWong
  • DZone
  • Technorati
  • YahooMyWeb

Categories

Monthly Archives