Gaurav Wadhwani wrote:I still dont get it. They say for large scale applications j2ee is more useful whereas PHP for small scale. However, there are a number of sites which are large and made in php. Example facebook. What does largescale mean here?
Just to clarify the point made above, I am posting something I came across while trawling on the internet.
Facebook has realized that there are downsides to using the LAMP stack. Notably, PHP is not necessarily optimized for large websites and therefore hard to scale. Also, it is not the fastest executing language and the extension framework is difficult to use.
and
Facebookâs backend services are written in a variety of different programming languages including C++, Java, Python, and Erlang.
How does Facebook work
Just to answer the specific question raised here. PHP will not be able to scale on it's own it will need the support LAMP stack, whereas in case JavaEE I do not really have to look around for scalability. JavaEE itself provides me help in taking care of it. Hence, it is suggested that for largescale application use JavaEE, while PHP can cater to simple, straightforward, small applications.
My thought would be comparison of PHP and JavaEE is absurd. If at all you want to compare, do so between JSP and PHP, though not really exact, they are almost identical in terms of their responsibilities.