Wow, looks like Brian made a code base similar to mine, but I'm sure mines far superior 🙂
You can dispose of the 3-tier set up and enjoy faster execution time by purchasing teh Zend Optimizer at zend.com.
This allows your PHP classes and other source code to be stored as encrypted binaries, that allows you to enjoy higher levels of security for the codebase as the source code will not be readily viewable and thus, any hostname/username and passwords stored within will be nice and safe. Plus, you get the speed increase of not having to access a 2nd application to do the work that PHP can do excellently on it's own.