Using custom sounds for iPhone SMS notification
I quickly go bored of the default iPhone SMS sounds. But its relatively easy to switch them to your own.…
Setting up postfix on Ubuntu for mailing from PHP
To allow your Ubuntu server to send emails from PHP, then you need to install postfix. Postfix is a mailer…
Sorting a SELECT with JQuery
Just a simple function to sort an already populated list. Obviously it would be easier to sort before populating, but…
Zend_Date – difference between 2 dates
I keep having trouble with this simple calculation! So, here is a little example to get the amount of days…
ThreadSMS – Review
My Nokia doesn’t have threaded SMS view – and its very annoying. So, after searching about for a suitable application…
Reading the MySQL binary log
Having MySQL dumping out binary logs is a very good failsafe for backup redundancy. But, how do you get any…
Accessing the Zend_Application from a page
If, like me, you need to access some Zend_Application resources (such as multidb resources) – then you need a reference…
Retrieve email using regex
ThisĀ horrendousĀ regular expression will parse a string and return a valid email address from it. $email = "<'Freddy'> fred@live.com"; preg_match('/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/', $email,…
Online regex -> php tool
I’ve found an excellent online tool, where you can give it a regex, and it will spit out the PHP…