tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Helmling ...@panix.com>
Subject Re: Tomcat supporting PHP
Date Thu, 19 Jul 2007 13:06:24 GMT
We have been working with the PHP/Java bridge for some projects
(http://php-java-bridge.sourceforge.net/pjb/), which basically provides
option #1.  

The Java Bridge installs as a standard WAR in Tomcat and can be
configured as a servlet in your webapps.  For any requests for PHP
files, it then executes the PHP files via a FastCGI process (or mod_php
if you choose).

This gives you full access to all installed PHP libraries, plus you can
access your Java classes (and the servlet HttpSession) seemless -- the
PHP side uses a stream XML protocol to invoke the Java back-end and is
actually quite fast.

Overall it's a great and very active project.  And it works very well
for integrating PHP into a Java environment.  

But I don't think it's something I would want to see integrated with
Tomcat itself.  I'm just an observer here, but for me, Tomcat is about
being a great servlet container, not a vehicle for every web technology.

--Gary


On Thu, 2007-07-19 at 09:53 +0200, jean-frederic clere wrote:
> Hi,
> 
> I am thinking that this thread goes to nowhere...
> 
> To get some php stuff in TC you have 3 solutions:
> 1- FastCGI.
> 2- PHP engine embedded in in the JVM.
> 3- PHP rewritten in JAVA.
> 
> 1 - That probably the best solution but  you need a FastCGI proxy 
> servlet (Could be a good application for the new Comet stuff).
> 
> 2 - That also needs a servlet and a careful build of the php engine and 
> it extensions.
> 
> 3 - I don't think that the scope of the Tomcat project.
> 
> Cheers
> 
> Jean-Frederic
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message