Ops , PHP vs Java again

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
quocbao
Forum Commoner
Posts: 59
Joined: Sat Feb 04, 2006 2:03 am
Location: HCM,Vietnam
Contact:

Ops , PHP vs Java again

Post by quocbao »

The story about "PHP and Java" seems last forever

But this's new , i think you guys should take a look at this article

http://blinduser.blogspot.com/2006/02/php-vs-java.html

Maybe after you read this article , leave him a comment :D

Thanks Aaron Crane
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You know, I read that post and another one about PHP on large websites. Both seemed strangely out of date -- like the guys had been locked in a closet for a year or so. I thought that they had reinstalled their blog and the dates had updated to this year. My impression is that the converstation has moved far past any of the articles on that site.
(#10850)
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Off course PHP scales, but consider how many mobile devices run PHP-apps and how many Java-Apps. PHP is a web-based language (forget GTK) and it hasn't transcended the platform-barrier (i.e. webserver -> mobile devices): it's doubtful it ever will.
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

patrikG wrote: PHP is a web-based language (forget GTK) and it hasn't transcended the platform-barrier (i.e. webserver -> mobile devices): it's doubtful it ever will.
It would be a viable contender if it was capable of threading.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

A long time ago (around 1999) i choose to use PHP instead of Perl for my webapps because PHP was especially written for the web.. Afterwards it seemed to be a good choice because most webhosts offered mod_php but refused to offer cgi/mod_perl..

A reason not to use Java (HttpServlet, JSP, JSF, ... ) for webapps was that it required me to look for a special webhost. I don't know how valid that reason is these days. With a java webapp i know that i will run, as is, in a container that supports the standard. With PHP it's a pita to get the php.ini settings right, the required extensions to be installed, .. More and more i end up with the feeling that both approaches require me to look for a customized webhost environment...

Anyway, as the OP already wrote in his first post, today it's more about PHP AND Java. Because you use the one it doesn't mean you can't use the other one. They can even communicate with each other.. Hiring a couple of cheap workforces to write a php frontend for your existing java backend seems like the way to go...
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

BDKR wrote:
patrikG wrote: PHP is a web-based language (forget GTK) and it hasn't transcended the platform-barrier (i.e. webserver -> mobile devices): it's doubtful it ever will.
It would be a viable contender if it was capable of threading.
Possible, but by the time that would be a feature, even my Grandma's calculator runs Java ;)
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

patrikG wrote:
BDKR wrote:
patrikG wrote: PHP is a web-based language (forget GTK) and it hasn't transcended the platform-barrier (i.e. webserver -> mobile devices): it's doubtful it ever will.
It would be a viable contender if it was capable of threading.
Possible, but by the time that would be a feature, even my Grandma's calculator runs Java ;)
Got that right!
Goes in other room to play Tetris on cell phone[/i]
userjs8448
Forum Newbie
Posts: 3
Joined: Fri Feb 03, 2006 7:13 pm

hey guys

Post by userjs8448 »

I am the owner of this blog (http://blinduser.blogspot.com)

you guys are right, a couple of my last articles were slightly out of date (I actually pulled them from some old archived articles that I found interesting). I should have looked through it a little bit more and just posted the stuff that I found useful.

most of my articles are pretty much up to date ;-)
Post Reply