i disagree with vincent to some degree in that i don't think that java is really all that hard. it has a few quirks but it comes with all the conveniences of a modern language (automatic garbage collection, no messing arround with malloc() or similar, full feature string manipulation). it generates semi-meaningful errors (a good thing) and has great built in error handling too. Furthermore, jdbc is pretty powerful for database access and more is portable than php's not-so-universal approach. the stuff that is counterintuitive in java are the ui libraries (swing, awt) BUT if your developing a web app that's not an issue... and swing is still way easier than qt, gtk+ or mac toolbox. lastly, there are a bajillion free classes out there for java that provide you with all sorts of neato keano functionality. while php is getting there in this department, java has a massive head start. heck, if you want my java versions for explode() and implode() i'll email them to ya.
having said all that, i'd still reccommend php. the implementation is so easy and the language so forgiving that it's almost a no-brainer.
oh yeah, php's online documentation is better than javasoft's ("the trail" sucks... and james gosling can't write)