Category Archives: Zend

Automatic Lossless JPEG Optimisation

Just stumbled upon this little program which optimizes JPEG images. In my directory of thumbnails it saved an easy 20KB for only 16 images, so that’s not half bad if you ask me. Every little bit helps I’ve been working on a little gallery in Zend Framework, and am generating thumbnails in a cache dir. [...]

ffmpeg-php on Zend Server CE

I’ve been working on a little project to view photos and videos from a mobile browser using Zend Framework. I’ve gotten so far as to generate a little gallery with real-time thumbnailing and pagination which shows the image at (once again real-time resized) a resolution commonly used by mobiles. Now the next step is being [...]

Facebook HipHop PHP

First of all you might be wondering what Facebook, hip-hop and PHP have in common. This is not about 50cent or some other mumbling gangstah writing rhyming PHP on his Facebook page, no no! Facebook has been working on a way to speed up PHP on their thousands of servers and they have come up [...]

Automate Db Model Creation with Zend_CodeGenerator_Php_Class

I just found this post on Joey Rivera’s blog which will make my life a lot easier in the future. It allows for you to generate the php code Zend Framework relies on to access the database. Currently you would have to make a new file for each table (depending on which way you have [...]

Howto: Zend Framework Cron

This was verified to work under Zend Framework 1.9.5 and 1.9.6. First we want to make a new file for the cron somewhere outside the public folder, I chose a folder called scripts. My project thus looks like this: domain.com application library logs public index.php scripts cronjob.php tests The trick with cronjobs is that you [...]

My Zend Framework Test Project

I’ve been experimenting with Zend Framework (ZF) for some time now at home to try and expand my knowledge of PHP and in particular MVC patterns. I must say it took me quite a while to understand how ZF works exactly, but now the rewards are starting to come in! I’ve been building a Google [...]