permaculture playing cards*
The moose likes Beginning Java and the fly likes Java or php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java or php" Watch "Java or php" New topic
Author

Java or php

Ankitt Gupta
Ranch Hand

Joined: Feb 19, 2009
Posts: 101
which is better for server side programming
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Either. Neither. How can anyone say without knowing anything about you or your project?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
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

Joined: Jan 10, 2002
Posts: 60782
    
  65

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

Joined: May 13, 2009
Posts: 679
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
Sheriff

Joined: Sep 28, 2004
Posts: 18526
    
  40


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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: Java or php