Zend Console – get values passed
When using a CLI script with options, I like to use the Zend_Console. If my options are as follows: $console…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
When using a CLI script with options, I like to use the Zend_Console. If my options are as follows: $console…
When performing a simple SQL search using Zend_Db_Select, $select->where('name = ?', 'chris'); But what if you want to do a…
To allow your Ubuntu server to send emails from PHP, then you need to install postfix. Postfix is a mailer…
I keep having trouble with this simple calculation! So, here is a little example to get the amount of days…
If, like me, you need to access some Zend_Application resources (such as multidb resources) – then you need a reference…
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,…
I’ve found an excellent online tool, where you can give it a regex, and it will spit out the PHP…
If like me, you use Ant to deploy builds, etc, and you have migrated to Windows 7 – you may…
When backing up a source code working copy, you don’t always want all the little .svn folders everywhere. You can…
Say you have a list of movie titles, and you want to either sort them, or search through them, and…