why PHP is becoming more popular than java
PHP is more popular than Java because of following reasons:
1)PHP web hosting options are superior.
2)PHP provides rapid development and instant gratification to developers.
3)PHP web frameworks provide a complete stack sufficient to develop a great many web sites.
4)PHP frameworks provide a low barrier of entry for web developers.
5)No DLL or jar hell in PHP.
The advantages that PHP has over Java for web development:
Lower barrier to entry
Simpler hello world
Cheap widely available hosting
Deployment is a simple file copy
No class path
Focus on a single domain (web)
User annotated online documentation
Commonly installed by default with Apache