I posted in in the PHP forum http://www.sitepoint.com/forums/showthread.php?t=394506