tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DirectXtras <postmas...@directxtras.com>
Subject Autoreply: Re: PHP from Tomcat some news from JFC :)
Date Thu, 08 Apr 2004 06:12:28 GMT
Hello,

Due to the increased volume of SPAM this mailbox has been closed.

Please contact us via http://www.directxtras.com/ContactUS.asp

We apology for the inconvenience.

Best Regards,
--
The DirectXtras Team
---------------------------------------------------------------------
DirectXtras - Xtra Power for Director and Authorware -
              http://www.directxtras.com
Sites with something to say - http://www.SpeaksForItself.com
---------------------------------------------------------------------


Your message reads:

Received: from mail.apache.org (unverified [208.185.179.12]) by mail2.intermedia.net
 (Rockliffe SMTPRA 4.5.6) with SMTP id <B0311990267@mail2.intermedia.net> for <postmaster@directxtras.com>;
 Wed, 7 Apr 2004 23:12:28 -0700
Received: (qmail 59678 invoked by uid 500); 8 Apr 2004 06:12:09 -0000
Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
List-Subscribe: <mailto:tomcat-dev-subscribe@jakarta.apache.org>
List-Help: <mailto:tomcat-dev-help@jakarta.apache.org>
List-Post: <mailto:tomcat-dev@jakarta.apache.org>
List-Id: "Tomcat Developers List" <tomcat-dev.jakarta.apache.org>
Reply-To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
Delivered-To: mailing list tomcat-dev@jakarta.apache.org
Received: (qmail 59656 invoked from network); 8 Apr 2004 06:12:08 -0000
Received: from unknown (HELO main.gmane.org) (80.91.224.249)
  by daedalus.apache.org with SMTP; 8 Apr 2004 06:12:08 -0000
Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian))
	id 1BBSlv-0005TK-00
	for <tomcat-dev@jakarta.apache.org>; Thu, 08 Apr 2004 08:12:20 +0200
Received: from adsl-63-202-83-54.dsl.snfc21.pacbell.net ([63.202.83.54])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <tomcat-dev@jakarta.apache.org>; Thu, 08 Apr 2004 08:12:19 +0200
Received: from cmanolache by adsl-63-202-83-54.dsl.snfc21.pacbell.net with local (Gmexim 0.1
(Debian))
        id 1AlnuQ-0007hv-00
        for <tomcat-dev@jakarta.apache.org>; Thu, 08 Apr 2004 08:12:19 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: tomcat-dev@jakarta.apache.org
From: Costin Manolache <cmanolache@yahoo.com>
Subject: Re: PHP from Tomcat , some news from JFC :)
Date: Wed, 07 Apr 2004 23:12:08 -0700
Lines: 133
Message-ID: <c52qg1$h51$1@sea.gmane.org>
References: <003c01c41c30$74dbdb30$1701a8c0@lt016> <1356.208.48.139.163.1081298212.squirrel@208.48.139.163>
<008901c41ca9$c87ecb20$1701a8c0@lt016> <4074177C.80904@apache.org> <c516jk$4qv$1@sea.gmane.org>
<40742137.7080800@sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: adsl-63-202-83-54.dsl.snfc21.pacbell.net
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316
X-Accept-Language: en-us, en
In-Reply-To: <40742137.7080800@sun.com>
Sender: news <news@sea.gmane.org>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

Mark Roth wrote:
>  From what I hear, the current PHPServlet is okay for simple things, but 
> the integration you're looking for is not quite there yet.
> 
> There's some work going on to let Java and scripting languages act more 
> friendly with each other.  For those who are interested, check out 
> JSR-223, Scripting Pages in Java Web Applications.
> 
>     http://jcp.org/en/jsr/detail?id=223
> 
> This JSR focuses on tight integration between PHP (or other scripting 
> languages) and Java webapps.  Zend is an active participant on the 
> expert group and is interested in such integration.
> 
> I believe they're building their RI on top of Tomcat.
> 
> Cool stuff!

Yes, but it's actually the reverse of what I'm interested in :-)

 From what I've read the JSR is more about allowing scripting languages 
to access and use java objects. It may look cool - but there
are already plenty of scripting languages targeting the JVM - jython,
mozilla's javascript, bsh, etc. There are 2 great things about scripting
languages, one is the simplicity of syntax and the ease of developing
code. This is IMO covered well enough by the variants targeting the VM.
( I believe cocoon is using javascript already ).

The other great thing about scripting languages is the large collection 
of existing extensions and scripts.

To use Apache as example - having Apache call native java modules for 
auth is interesting, but using the existing collection of apache modules 
  is IMO the real value :-).
Apache is more than the HTTP stack ( and while we have a very good http
implementation in tomcat, I'm not sure we can match the amount of 
testing and review and stability apache's got ). And Python/PHP/etc are 
more than a syntax to use in a page.



Costin





> 
> ---
> Mark Roth, Java Software
> JSP 2.0 Specification Lead
> Sun Microsystems, Inc.
> 
> 
> Costin Manolache wrote:
> 
>> Nice :-)
>>
>> Did you try it ? I'm curious, could you run a quick helo world 
>> benchmark ( helo.jsp / help.php ) ?
>>
>> The big question is the level of integration - i.e. if you can call java
>> objects from php or use some of the nice PHP features from java.
>>
>>
>> Costin
>>
>> Henri Gomez wrote:
>>
>>> Hi to all,
>>>
>>> Mladen discussed about using PHP from Tomcat.
>>>
>>> Jean-Frederic Clere make some tests during his vacation
>>> and send me the following mail to be forwarded to the list :
>>>
>>> ....
>>>
>>> Good news, tomcat+php it's easy, php allready have support for.
>>> I make a simple try and here's the resulting 'readme' :
>>> ++++
>>> Using php in Tomcat5: Easy a servlet is available in php (I have 
>>> tried with
>>> php-4.3.5)
>>>
>>> configure the php with:
>>> ./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME
>>> a jarfile and dynamic library are produced:
>>> - sapi/servlet/phpsrvlt.jar
>>> - libs/libphp4.so
>>>
>>> Copy jarfile and arrange web.xml:
>>> cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib
>>> copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping 
>>> in the
>>> $TOMCAT_HOME/conf/web.xml
>>>
>>> Start the Tomcat:
>>> LD_LIBRARY_PATH=$PHP_HOME/libs
>>> export LD_LIBRARY_PATH
>>> $TOMCAT_HOME/bin/catalina.sh start
>>>
>>> Try it:
>>> Create a file named ./webapps/ROOT/test.php containing:
>>> +++
>>> <?php phpinfo(); ?>
>>> +++
>>> Call it:
>>> http://localhost:8080/test.php
>>>
>>> Patch for the configure of php:
>>>
>>> --- configure.org       2004-04-07 11:20:24.000000000 +0200
>>> +++ configure   2004-04-07 11:22:50.000000000 +0200
>>>      if test "$withval" = "yes"; then
>>>        SERVLET_CLASSPATH=.
>>>      else
>>> +      if test -f $withval/common/lib/servlet-api.jar; then
>>> +        SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar
>>> +      fi
>>> +
>>>        if test -f $withval/lib/servlet.jar; then
>>>          SERVLET_CLASSPATH=$withval/lib/servlet.jar
>>>       fi
>>> ++++
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>>


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



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


Mime
View raw message