Yes,PHP is better than java.Due to following factors. # It is easy to learn # It is open source language.So any one can learn in free. # It is more user friendly than java.
Both. PHP does all server side, what is good for things that should be server side. php and JavaScript must work together to make the best dynamic web sites. without Ajax, wouldn't we have all the cool effects that we have today: the dynamic load, chatting, social networking, navigation page without actually navigating to another page, meebo.com, facebook.com.