Well, PHP is for web programming and Java/j2ee is for enterprise application programming.
Now web programming means creating a shopping cart, creating a online reservation system etc. For a online commercial product like these can easily be developed with php in a little span of time & minimum investment. Where as for Java/j2ee is to develop heavy enterprise application online banking system, CRM,Insurance, Online trading application etc.
So if you feel , web programming is your interest and passion then go with the php else Java .