Pages

Categories

A lightweight and flexible front controller for PHP 5

Apparently the front controller is a commonly misunderstood design pattern so I figured I’d throw out some thoughts to the masses.
To put it simply, a Front Controller is a gateway to an application. All requests hit the front controller leaving it to decide what to do next. Typically a front controller will set […]

August 12th, 2007 | PHP | 19 Comments »

Virtual E-mail domains with Exim4 and Dovecot

If, like myself you’ve got one server from which you want to run many different domains for web hosting and email, you may be realising just how tricky it can be to provide email for non-system users. The typical SMTP/IMAP setup on a linux server is ignorant about what domain is being used when […]

May 28th, 2007 | Linux & Servers | 3 Comments »

A MySQL Class/Iterator for PHP5

After some discussion over at DevNetwork Forums regarding MySQL classes I was given an idea which changes the way I’ve always written MySQL wrappers. Previously there had always been just one class. That class returned result resources and provided the wrapper methods for working with these.
The inspiration I was given in this scenario […]

July 26th, 2006 | PHP | 3 Comments »

More about Creating Objects in JavaScript

A little later than expected since I’ve been quite busy with my Swift Mailer project (SourceForge).
A few weeks ago I posted an introduction on how to create objects using JavaScript. The concept is simple and quite fundamental. Objects are functions, methods are assigned as new functions inside the object and the constructor is simply […]

June 15th, 2006 | JavaScript | 2 Comments »