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 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.
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: PHP, php 5.4
PHP 5.4 Features

PHP 5.4.0 is planned to be released on February, 2 2012. By the time you are reading this, it may already been out. It is a result of many months of development.
Continue Reading
Posted in News, PHP
Posted on 30 January 2012. Tags: gettext, PHP
gettext — Lookup a message in the current domain
Continue Reading
Posted in PHP
Posted on 29 January 2012. Tags: characters, greek, utf
Here are the capital and small Greek letters for HTML 4.0 special characters from the UTF-8 Character Set.
Continue Reading
Posted in PHP