Joe Nathan wrote:

You should realize that PHP world is lot bigger than Java world!
I'm not really sure about that. For instance, even PHP web sites 'admit' that Java is a great deal larger:

http://www.phpmag.net/magphpde/magphpde_news/psecom,id,27191,nodeid,5.html

Typically book stores (at least in Europe) carry more book about Java than about PHP. On top of that, job websites offer more jobs relating to Java than to PHP. A lot depends on your point of view of course. If you're into affiliate marketing, you might think the entire world is PHP. Most of the small affiliate websites are indeed using PHP. On the other hand, if you look at financial systems (banking, travel, etc) you would think the entire world is nothing but Java EE.

Having both will have many merits.
I think there are some usecases for running PHP on a Java AS. Sun itself is putting lots of efforts in getting various scripting languages to be able to execute on the Java VM. I'm suprized though nobody mentioned Quercus yet. This seems to do exactly what this topic is about: implementing a PHP interpreter and a good deal of PHP's libraries in Java. See:

http://www.caucho.com/resin-3.0/quercus/index.xtp

Here's a blog about using it on something other than Resin (Glassfish):

http://weblogs.java.net/blog/ludo/archive/2007/03/100_java_quercu.html

A while back I read a blog about one guy who benchmarked some PHP applications running in this setup (I think he used Tomcat), and found the performance was a great deal better than pure PHP. I can't find this blog anymore, but in the mean time this one may be interesting to read: http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=java&lang2=php

Grtz




--
It's a cult. If you've coded for any length of time, you've run across someone 
from this warped brotherhood. Their creed: if you can write complicated code, 
you must be good.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to