Why you would choose PHP over Java on your next major CMS development
project:
- You want to write anywhere, run once.
- You want to work directly with classes, not with masochistic binding frameworks and scaffolding tools.
- You want to install open source libraries without a complex build process.
- PHP is the ultimate template engine.
Why you would choose Java over PHP:
- You don't want the whole application server to reload itself for every
web request.
- You want namespaces and built in methods that aren't some
randomly invented C syntax.
- You believe a domain model is more than a bunch of MySql wrapper classes.
- Nothing in PHP comes close to Hibernate.
Why you would choose neither Java nor PHP:
- You actually want to let Apache do the work it's best suited for (see Zope).
- You think that implementing a simple dynamic application shouldn't require
hundreds of lines of accessor methods (see Rails).
- Who needs an application server anyway? (see Trimpath).
- Visual Studio is just far too convenient (see .NET).