I linked to a couple of pages a week or so ago about the __autoload() function in PHP. Since then I've discovered SPL and its autoloading functions which mean you can queue up a set of autoload functions which it will cycle through if it doesn't find the class in the initial functions. Have a look: http://stackoverflow.com/questions/3710480/php-spl-autoload-register