Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java or php

 
Ankitt Gupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which is better for server side programming
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either. Neither. How can anyone say without knowing anything about you or your project?
 
Fred Hamilton
Ranch Hand
Posts: 684
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled java vs php and found a bunch of stuff, this was at the top of the list.

http://www.tonybibbs.com/article.php/20030212152811436

One big difference is that php requires no client side software, whereas it is my understanding that server side java still requires a JVM on the client.

But better? like the man says, it all depends on what you are doing.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fred Hamilton wrote:whereas it is my understanding that server side java still requires a JVM on the client.

Your understanding is not correct.
 
Fred Hamilton
Ranch Hand
Posts: 684
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
Fred Hamilton wrote:whereas it is my understanding that server side java still requires a JVM on the client.

Your understanding is not correct.


duly noted and withdrawn. subsequent preliminary research suggests a complete misinterpretation of the concept on my part.
 
Henry Wong
author
Marshal
Pie
Posts: 20902
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The easiest way to think about it is... both Java (Servlets and JSPs) and PHP generates content that runs in a browser. So, their client side requirements are the same.

Henry
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As for which one is better, I'd say ASP
Now seriously, it's all a matter of opinion.

If PHP can do what you need, your web server supports it and you like PHP, you use PHP.
If JSP / servlets can do what you need, your web server supports it and you like Java, you use JSP.
If ASP can do what you need, your web server supports it and you like ASP, you use PHP or Java. Because ASP is garbage
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic