PHP: a simple model mapper with Zend_Db_Table
Using Zend_Db_Table to access database is a good way to retreive data. However, the pattern Zend_Db_Table implements (table data gateway) has, IMHO, a major drawback: […]
Continue reading »Sharing few experiences that may be of any interest…
Using Zend_Db_Table to access database is a good way to retreive data. However, the pattern Zend_Db_Table implements (table data gateway) has, IMHO, a major drawback: […]
Continue reading »If you use PHP and Zend Framwork, you may use Zend_Application, a marvelous componant that appeared in the 1.8 version of the framework. I just […]
Continue reading »The concept XMI Transform is a tool written in PHP (5) to convert XMI file to source code or source code to XMI file.The purpose […]
Continue reading »ZendFramework provides a class to handle configuration: Zend_Config. It also provides a class to manage cache: Zend_Cache. But, unless the Zend_Translate component (as of the […]
Continue reading »A little function to transform an ascii string into a Mac Roman string suitable for MacOS Pre X
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
function AsciiToMacRoman($str) { return strtr($str, "xc4xc5xc7xc9xd1xd6xdcxe1xe0xe2xe4xe3 xe5xe7xe9xe8xeaxebxedxecxeexefxf1xf3 xf2xf4xf6xf5xfaxf9xfbxfcxb0xa7xb6xdfxae xb4xa8xc6xd8xa5xaaxbaxe6xf8xbfxa1xac xabxbbxa0xc0xc3xf7xffxa4xb7xc2xcaxc1 xcbxc8xcdxcexcfxccxd3xd4xd2xdaxdb xafxb8x22x22x27x27", "x80x81x82x83x84x85x86x87x88x89x8ax8b x8cx8dx8ex8fx90x91x92x93x94x95x96x97 x98x99x9ax9bx9cx9dx9ex9fxa1xa4xa6xa7 xa8xabxacxaexafxb4xbbxbcxbexbfxc0xc1 xc2xc7xc8xcaxcbxccxd6xd8xdbxe1xe5xe6 xe7xe8xe9xeaxebxecxedxeexefxf1xf2xf3 xf8xfcxd2xd3xd4xd5"); } |
Link to this post!
Continue reading »