Posted on 04 February 2012.
While working on the redesign to this blog, I wanted to add the “Interesting Stuff” column you see just to the right. Using the RSS feed widget built into WordPress would be perfect, except for the fact that it only updates ever 12 hours. In today’s Quick Tip, we fix that problem.
Continue Reading
Posted in PHP
Posted on 03 February 2012. Tags: chown, ftp, Plesk, suphp, upload
suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

Continue Reading
Posted in PHP, Plesk
Posted on 03 February 2012. Tags: vanilla
Vanilla default templates and styles
Continue Reading
Posted in Programming
Posted on 02 February 2012. Tags: ftp, PHP, upload
To upload a file to ftp you need a html form where you can insert the ftp details, like the ones described above:
Continue Reading
Posted in PHP
Posted on 02 February 2012. Tags: gettext, locales, poedit
Developing multi language web sites using PHP is actually very easy. A common approach is having an include file for every supported language which contains an array that maps string ids to localized text (for example "WelcomeText" => "Welcome to our homepage." would be included using something like <?= $strings["WelcomeText"] >). However there are several problems with this approach. First of all, when the application is updated and additional strings are added, there is no way to determine which new strings were added and if they are present in every language (unless you write a script for it). What happens if a newly added string is not yet translated into a specific language?
Continue Reading
Posted in PHP
Posted on 01 February 2012. Tags: meta, seo, wordpress, wp
Add Facebook Open Graph Meta Tags
Place the following code in custom_functions.php (making changes where noted): Continue Reading
Posted in PHP
Posted on 01 February 2012. Tags: fonts, lorem, text
The Typetester is an online application for comparison of the fonts for the screen. Its primary role is to make web designer’s life easier. As the new fonts are bundled into operating systems, the list of the common fonts will be updated. Continue Reading
Posted in CSS, News
Posted on 01 February 2012.
Convert Numbers to Words
This little script was whipped up to convert numbers to words for use in a cheque book, it has an upper limit of 999999999 but that should take care of most sane amounts of cash. Should you require a function that needs to spell out more cash than this, my rates are $7474.00/hr
Continue Reading
Posted in PHP
Posted on 01 February 2012. Tags: duplicate, form, PHP
You can use the method below to prevent duplicate form submission or form re-submission using PHP. This method is simple to implement and does not require JavaScript.
Continue Reading
Posted in PHP
Posted on 31 January 2012. Tags: background, CSS, multiple
Is it possible to have two background images? For instance, I’d like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.
Continue Reading
Posted in CSS