Chris wrote:I'd say no to Java, it used to be good and when I first started programming I used JSP for my websites instead of PHP, I do find it can be faster than PHP, but PHP has advanced and has quite a bigger library and functionality, PHP's syntax isn't much different but the small differences do help source errors easier. Secretly I still really love Java

I still like it as well, but in its places. I don't think any language can truly be "one language for every use" like it was billed. C# and the rest of .NET is the same way. You
can use it for almost anything, but is it the most efficient answer for every solution? Not by a long shot.
To the OP:
As others have said, it really depends on what you want to make. Flash is more complicated, and more artist-driven than AJAX or Java, but it does a great job for games that require a lot of animation and effects. However, the way to code Flash to use PHP as a back-end is no where near beginner stuff, and is even quite ugly for advanced coders. Java has kind of lagged behind in browser-based game development. I really think there are better options now. PHP and AJAX is a potent combination. You can use mostly PHP and Javascript/AJAX for effects, use mostly AJAX for the game and PHP mostly for the back-end, or anything in-between.