Pragmatism in the real world

Zend Framework Front Controller

Zend have finally released a preview of their new framework at http://framework.zend.com/. I've started having a play and their implementation of a Front Controller is quite similar to what I've been playing with. This isn't a total suprise as there aren't that many ways to do a Front Controller :) The documentation on the Zend/Controller directory is completely non existant, so I've worked out the basics by reading the source. Fortunately, the source isn't too… continue reading.

PHP UK Conference 2006 in Detail

I wrote this post to the PHP West Midlands mailing list, so thought I'd put it here too: Iain asked, so here it is! It was a one day event for £50 on the early bird thing and £75 if you ordered later. I stayed at a hotel around the corner for £35 inc breakfast. I drove down and parked at Perivale tube station and used the Underground from there. Total cost for the entire… continue reading.

PHP UK Conference 2006

Just got back from the conference and thought it was excellent. The social last night was good too – makes me wish I lived in London! It was a one day event for £50 on the early bird thing and £75 if you ordered later. I stayed at a B&B around the corner for £35 inc breakfast. I drove down and parked at Perivale tube station and used the Underground from there. Total cost for… continue reading.

WordPress 2.0 Rewrite Rules

We recently upgraded my wife's blog from WordPress 1.5 to 2.0 and it broke the mod_rewrite rules used to support the legacy Movable Type urls. When she migrated from Movable Type to WordPress, we moved to /{year}/{month}/{day}/{slug} type urls from the default Movable Type rule of /archives/{id}.html. We read the manual at the time and put the following into the .htaccess file: RewriteRule archives/0*(d+).html /index.php?p=$1 RewriteRule index.rdf /index.php?feed=rdf RewriteRule index.rss /index.php?feed=rss RewriteRule index.xml /index.php?feed=rss2 and… continue reading.

Dynamic JavaScript Tabs v1.0.3

Simon Hamilton contacted me about adding ids to each tab, so I did! I've also fixed the CSS error that Adam noticed and correctly updated the version number in the license block! Update: I've created a separate page to hold the download link

Dynamic JavaScript Tabs v1.0.2

I received a patch from Imobach González Sosa to allow the Dynamic JavaScript Tabs code to support more than one tab container set on a single page. I've applied the patch and this is version 1.0.2! Thanks Imobach! Update: I've created a separate page to hold the download link

Active Record

I've recently been working through the PHP|Architect's Guide to PHP Design Patterns and have decided to build my own version of an active record along the lines of the one in Ruby on Rails. It's turning into an interesting experience as I'm doing using Test Driven Development methodology. This is proving very useful as I don't really have a clue where I'm going with the design, and so having a series of tests for each… continue reading.

PHP Collaboration Project

Everyone else is talking about the PHP Collaboration Project, so I thought I would too! I think this should be fun. There are two strands from what I can tell: A framework. A Zend plugin for Eclipse I currently use Zend's Studio and think it's great. it's expensive though and, to be honest, the problems revolving around editing have long been solved. Eclipse is a nice enough IDE and I think it would be better… continue reading.

Quick and Dirty Profiling

Profiling the quick and dirty way works for me a lot of the time. Other times, Zend's profiler is better, but when I just want to work out which function is taking all the time, the following function peppered throughout my code tells me what's going on:

10 Years of PHP

Seems hard to believe that PHP is 10 years old! I know it's quirky and not "elegant" in a lot of ways, but it fits what I need to get done like a glove. I especially like how it doesn't get in the way of creating kick-ass applications for the web!