• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how is J2ee stronger than php?

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know there are several comparisons available, but still i want to ask, what is that which can be done in J2ee and in through php? There must be a reason we are choosing a language that is more difficult to program and all j2ee servers are much expensive than php servers.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not a comparison you can really make. PHP is a scripting language, JEE is a range of API and standards for performing a whole plethora of functions.
 
Gaurav Wadhwani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
still, why should i use j2ee if php is much easier.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Gaurav Wadhwani wrote:still, y should i ...



Please use real words when posting to the forums. Abbreviations such as "y" in place of "why" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please click this link ⇒ UseRealWords for more information.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using PHP is like using JSP without Servlets or any of the rest of the JEE ecosystem. No thanks.
 
Gaurav Wadhwani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am quite certain that the middle layers and backend functions of Facebook are not implemented in PHP.
 
Gaurav Wadhwani
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and why is that?
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, the Java porgramming language is used for much more than "web applications." PHP is a simple embedded scripting language for HTML web pages. That is all PHP is.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Gaurav Wadhwani wrote:still, why should i use j2ee if php is much easier.



If you're looking for serious answers, it would be best to stop loading your question.

I've developed in both PHP and in Java and I don't think PHP is any easier than Java. For some things, it's harder.
So, maybe the question should be: Why are so many people coding in PHP when Java is so much easier?

Better yet leave out your opinion as to which is easier and just ask for the comparison.
Better yet still, search Google and read one of the hundreds or thousands of comparison sites and threads that are already out there.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic