Saturday, July 4th, 2009

Email Injection

Adding line feeds into a form field is one way crackers attempt to break into your script to apply their own mods. By testing for it and stripping them out of form fields where such characters are not valid input you can block that method of cracking your script.

Email Injection

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Friday, July 3rd, 2009

Register Globals

Hopefully there are not too many web hosts around that are running PHP with Register Globals enabled. If for some reason your host doesn’t allow you to secure your scripts by disabling it and you can’t change web hosts (for whatever reason) then adding a couple of lines of code to the front of the script will achieve the same result.

Register Globals

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Thursday, July 2nd, 2009

Add Section Numbers to Headings

Modern browsers support the CSS that allows you to automatically number your headings so that if you ever add or remove headings the rest are automatically renumbered.

Add Section Numbers to Headings

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Wednesday, July 1st, 2009

No Wrap

Here’s how to code things so as to keep a selected block all on one line in a standards compliant way.

No Wrap

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Tuesday, June 30th, 2009

Country Specific or International Domain

No one top level domain is best for all sites. If it were then there’d be no reason for other top level domains to exist. Which top level domain is best for a given site depends mainly on who the target audience is.

Country Specific or International Domain

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Monday, June 29th, 2009

Multi Language Support

My Guestmap script and both the free and advanced versions of my form2mail script all have new versions that are in the final stages of testing (they are close enough to being finished that my main site is already using them). In each case the script has been rewritten to add support for mjultiple languages where all of the text output by the script itself is output in the language of your visitor’s choice. The version of the scripts I have uploaded that you can look at has English and Dutch (you select which you want to see in the Guestmap by clicking on the appropriate flag). The person who suggested this change to me was kind enough to provide the Dutch translation and is arranging French and German translations for me as well.

If you would like to contribute to the usefulness of these scripts by providing translations for me into other languages then I am offering a 25% discount on the price of the Guestmap script (or 12 months extra support if you alredy have the script) to each person providing translations into another language that are suitable for incorporation into the script.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Sunday, June 28th, 2009

Simple Lists

A lot of the things you will want in your web page are actually lists so it is essential that you know how to code them as lists. For example most web pages have some form of navigation option that is basically a list of links. We’ll get to links later because before you can create lists of links you first need to know how to create Simple Lists.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Saturday, June 27th, 2009

Images

A page consisting of nothing but text is rather boring so in the third (X)HTML tutorial we consider how we can make our page look more interesting by adding Images. Don’t forget that images that are part of your HTML should be a part of the page content, if the images are just decoration then they belong in the CSS.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Friday, June 26th, 2009

Headings

With the basic tags reguired to create our (X)HTML page in place the first thing we need to add into the content of our page is Headings.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Thursday, June 25th, 2009

Hello World

For those looking to write semantic (X)HTML I have a series of tutorials that go progressively through each of the different tags looking at what you should be using each for and what attributes you should be using with it. For the pirposes of this series we’re going to look at the XHTML in a way that will also allow it to work as HTML (assuming you get rid of the slasahes from the self closing tags and change the doctype)..

In the tradition of all such tutorials let’s start with Hello World.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Wednesday, June 24th, 2009

Xbox Live

Some web sites provide easy to follow instructions on how to do things. Other sites such as the Xbox Live site make things as confusing as possible so that you will do all the wrong things and then have to harrass their support staff for a way around the mess. Here’s what to do to avoid their mess in the first place.

Xbox Live

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon
Tuesday, June 23rd, 2009

Network Terminology

When setting up a network you will find lots of items on sale that look similar but have different names. By knowing what those names mean you can buy the right components for your network.

Network Terminology

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • scuttle
  • StumbleUpon