Monthly Archives: August 2009

Accessibility and Dynamic Variable names

First a couple of PHP tips: You don’t have to use curly braces (for example in an “if” statement) if they only contain one statement. For example: could be written more concisely as: This looks neater and can make things … Continue reading

Posted in Programming | Tagged , , , , , , | 1 Comment

Single Quotes vs Double Quotes

Both single quotes and double quotes can be used to contain strings but in PHP there is subtle difference between the two. Continue reading

Posted in Programming | Tagged , | Leave a comment

Triple Equals Comparison Operator

One hell of a title. What does it mean? You know how you use a double equals (==) to compare two values in php? Well a triple equals (===) compares the values and also compares whether the variables are the … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

MySQL Date Functions

I found a useful MySQL trick which would have saved me some time a when making a site last year. It’s actually a fairly standard procedure but if you’re learning as you go it’s not exactly obvious. It goes something … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Programming – Rule One

Step 1. Check for typos and missing semicolons. Step 2. Repeat step 1 as needed.

Posted in Uncategorized | Tagged , , , , , | Leave a comment

XP Home Security Tab

What d’you do if you’re running XP Home edition and you need the security tab for setting permissions? Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Force Downloading Files

What if I’ve got a load of JPGs on my site which I would like people to be able to download rather than just open? Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment