Re: Tomcat supporting PHP

2007-09-10 Thread Endre Stølsvik

Sorry for posting on this old thread, and then even to my own post..

However, in the name of the archives and anyone interested:

It is GPL, and it is a native Resin feature, and both of those things 
are very sad. But it is a very interesting project, and it is definitly 
open source, though very business unfriendly.


This thing is apparently rather standards compliant, implementing the 
javax.scripting API. The PHP part of Resin resides in one single 
portable servlet.


Here's a blog entry describing the approx. one-and-a-half easy step to 
get "Quercus PHP engine running in GlassFish Java EE 5 Application Server":

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

Kind regards,
Endre.

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



Re: Tomcat supporting PHP

2007-08-31 Thread George MATKOVITS
Thank you for this post. I will definitely install it and use it with 
Drupal. PHP Drupal  collapses under heavy loads. Nobody seems to know why! 
Someone asked me to try to up its web transaction rate. The problem is under 
heavy blogging load, with large number of users. It could be absolutely  
ANYTHING. Drupal is also a heavy Data Base user. IMO for me it will be 
necessary to create an instrumented test bed before I dive into a problem 
like this!
Doing it in Java should be a great help! Anyone did anything like this on 
this list, please? Thank you -- George


Original Message Follows
From: Endre Stølsvik <[EMAIL PROTECTED]>
Reply-To: "Tomcat Developers List" 
To: Tomcat Developers List 
Subject: Re: Tomcat supporting PHP
Date: Fri, 31 Aug 2007 16:01:09 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([140.211.11.2]) by 
bay0-mc8-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 31 
Aug 2007 07:07:30 -0700

Received: (qmail 58169 invoked by uid 500); 31 Aug 2007 14:07:21 -
Received: (qmail 58158 invoked by uid 99); 31 Aug 2007 14:07:21 -
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)   
 by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 07:07:21 -0700

Received: neutral (athena.apache.org: local policy)
Received: from [84.208.20.33] (HELO smtp.getmail.no) (84.208.20.33)by 
apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 14:07:15 +
Received: from pmxchannel-daemon.no-osl-m323-srv-009-z2.isp.get.no by 
no-osl-m323-srv-009-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 
(built Sep  5 2006)) id <[EMAIL PROTECTED]> 
for dev@tomcat.apache.org; Fri, 31 Aug 2007 16:06:46 +0200 (CEST)
Received: from smtp.getmail.no ([10.5.16.1]) by 
no-osl-m323-srv-009-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 
(built Sep  5 2006)) with ESMTP id 
<[EMAIL PROTECTED]> for 
dev@tomcat.apache.org; Fri, 31 Aug 2007 16:06:41 +0200 (CEST)
Received: from diskbox.stolsvik.com ([84.215.32.37]) by 
no-osl-m323-srv-004-z1.isp.get.no (Sun Java System Messaging Server 6.2-7.05 
(built Sep  5 2006)) with ESMTP id 
<[EMAIL PROTECTED]> for 
dev@tomcat.apache.org; Fri, 31 Aug 2007 16:06:40 +0200 (CEST)
Received: from [10.10.10.10]	by diskbox.stolsvik.com with esmtp (Exim 
4.63)(envelope-from <[EMAIL PROTECTED]>)id 1IR78y-0001j2-IZ	for 
dev@tomcat.apache.org; Fri, 31 Aug 2007 16:06:40 +0200

X-Message-Delivery: Vj0zLjQuMDt1cz0wO2k9MDtsPTA7YT0w
X-Message-Info: 
R00BdL5giqomPpsO1gHqX7FvUa7ZP/ZdpY9vgOXMWv4yTpCOukq2Xk+yrOvGRN0ydp+036ysaatFw3aN9xgVoQ==

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:dev@tomcat.apache.org>
List-Id: 
Delivered-To: mailing list dev@tomcat.apache.org
X-ASF-Spam-Status: No, hits=1.2 required=10.0tests=SPF_NEUTRAL
X-Spam-Check-By: apache.org
Organization: stolsvik.com
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 31 Aug 2007 14:07:30.0472 (UTC) 
FILETIME=[44E5C280:01C7EBD8]


Joe Nathan wrote:

I am talking about in-built capability that people do NOT need
to install heaps of cranky-installation software packages!


I just came around to read this old thread, and I am surprised that no-one 
seems to know about Quercus from Caucho, the Resin guys:

  http://quercus.caucho.com/

 " Quercus is Caucho Technology's fast, open-source, 100% Java 
implementation of the PHP language. "


 " The growing list of PHP software certified running on Quercus includes 
DokuWiki, Drupal, Gallery2, Joomla, Mambo, Mantis, MediaWiki, Phorum, phpBB, 
phpMyAdmin, PHP-Nuke, Wordpress, and XOOPS. "


Docs for 3.1 (current):
  http://www.caucho.com/resin-3.1/doc/quercus.xtp

It's 4 times faster than PHP!!

http://www.workhabit.org/resin-backed-php-drives-4x-performance-improvements-drupal

It is GPL, and it is a native Resin feature, and both of those things are 
very sad. But it is a very interesting project, and it is definitly open 
source, though very business unfriendly.


Regards,
Endre.

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



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



Re: Tomcat supporting PHP

2007-08-31 Thread Endre Stølsvik

Joe Nathan wrote:

I am talking about in-built capability that people do NOT need
to install heaps of cranky-installation software packages!


I just came around to read this old thread, and I am surprised that 
no-one seems to know about Quercus from Caucho, the Resin guys:

  http://quercus.caucho.com/

 " Quercus is Caucho Technology's fast, open-source, 100% Java 
implementation of the PHP language. "


 " The growing list of PHP software certified running on Quercus 
includes DokuWiki, Drupal, Gallery2, Joomla, Mambo, Mantis, MediaWiki, 
Phorum, phpBB, phpMyAdmin, PHP-Nuke, Wordpress, and XOOPS. "


Docs for 3.1 (current):
  http://www.caucho.com/resin-3.1/doc/quercus.xtp

It's 4 times faster than PHP!!

http://www.workhabit.org/resin-backed-php-drives-4x-performance-improvements-drupal

It is GPL, and it is a native Resin feature, and both of those things 
are very sad. But it is a very interesting project, and it is definitly 
open source, though very business unfriendly.


Regards,
Endre.

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



Re: Tomcat supporting PHP

2007-07-19 Thread Gary Helmling
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Tomcat supporting PHP

2007-07-19 Thread Tim Funk

IIRC .. Glassfish took over the role of being RI.

-Tim

Henri Gomez wrote:

Tomcat is the RI for servlet/JSP engine, nothing less nothing more.



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



Re: Tomcat supporting PHP

2007-07-19 Thread Henri Gomez

Don't forget we're on Tomcat dev list

Tomcat is the RI for servlet/JSP engine, nothing less nothing more.

Adding PHP compatibility, via JNI wrapper, CGI or full Java PHP engine
is beyond the scope of the current Tomcat :-)

I think it will be great to see a basic PHP engine in pure Java, but
that's something we should ask to Zend for example.

Just my .02EUR

2007/7/19, Joe Nathan <[EMAIL PROTECTED]>:



Lilianne E. Blaze wrote:
>
> Actually, that is exactly the problem. Everyone and their dog can learn
> basics of php in a couple of days, creating illusionary supply of
> countless self-appointed web experts with neither skill nor potential to
> ever move past the most basic level.

hey, can you do other things than Java?

For example, Flash and action script, animation, movies, cool graphics,
content writting, search engine optimization, and so on?

That's why you don't get that job! having php in Tomcat
help you to learn those things as well, and become more
well-rounded web developer!

regards.


--
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11686314
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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




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



Re: Tomcat supporting PHP

2007-07-19 Thread Joe Nathan


Lilianne E. Blaze wrote:
> 
> Actually, that is exactly the problem. Everyone and their dog can learn
> basics of php in a couple of days, creating illusionary supply of
> countless self-appointed web experts with neither skill nor potential to
> ever move past the most basic level. 

hey, can you do other things than Java?

For example, Flash and action script, animation, movies, cool graphics, 
content writting, search engine optimization, and so on?

That's why you don't get that job! having php in Tomcat 
help you to learn those things as well, and become more
well-rounded web developer!

regards.


-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11686314
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-19 Thread Joe Nathan



Jean-frederic Clere-3 wrote:
> 
> Henri Gomez wrote:
>> PHP rewritten in Java could be a good idea for the core but what about
>> the various extensions ?
> 
> That is a very hard part that needs JNI to load and to interface the API 
> of the extensions. There are also very easily threads and memory models 
> problems. Such a wrapper seems a huge thing to write.
> 
One thing you guys may not realize is that PHP has been forked with the 
compatibility problem. With new versions, old php scripts won't run, unless
you get PHP from Redhat!

What I suggest is that once core is written, extensions can be filled by 
those who wrote original extensions. If they don't exist, just omit them
since nobody is going to maintain it after all.

It might be also a good idea to have good clean new extensions,
discourage ad-hoc vendor specific extensions.

regards.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11686198
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-19 Thread jean-frederic clere

Henri Gomez wrote:

PHP rewritten in Java could be a good idea for the core but what about
the various extensions ?


That is a very hard part that needs JNI to load and to interface the API 
of the extensions. There are also very easily threads and memory models 
problems. Such a wrapper seems a huge thing to write.


Cheers

Jean-Frederic




Of course it couldn't be a Tomcat project

2007/7/19, jean-frederic clere <[EMAIL PROTECTED]>:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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





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



Re: Tomcat supporting PHP

2007-07-19 Thread Henri Gomez

PHP rewritten in Java could be a good idea for the core but what about
the various extensions ?

Of course it couldn't be a Tomcat project

2007/7/19, jean-frederic clere <[EMAIL PROTECTED]>:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Tomcat supporting PHP

2007-07-19 Thread jean-frederic clere

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat supporting PHP

2007-07-18 Thread Lilianne E. Blaze
Joe Nathan wrote:
> arjan tijms wrote:
>   
>> 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.
>>
>> 
> You only see from your own pond. There are a lot bigger community
> out there! There are far more people doing some kind of web-development
> for own business, personal website, or professional web-development.
> These people don't know much programming, not counted in programmining 
> market. Many of them know PhP, ASP, etc., and javaScript (nothing to do with
> java).
>
> I don't see many web-sites running with Java AS! They are almost in PhP!
> To learn PhP, you don't need to spend thousands of dollars to buy
> dozens of books, like I did in the past. I have no PhP books.
> That easiness makes PhP polular amongst amateurs and professional
> web-developers. 
>
> regards.
>
>   
Actually, that is exactly the problem. Everyone and their dog can learn
basics of php in a couple of days, creating illusionary supply of
countless self-appointed web experts with neither skill nor potential to
ever move past the most basic level. Java, on the other hand, is
reasonably easy, but not that easy as to attract people who should never
got into this business in the first place. And that is a Good Thing. As
for prices - it's not that Java programmers are expensive - it's that
illusionary over-supply of php people drive the prices below any
reasonable levels.

Greetings, Lilianne E. Blaze

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



Re: Tomcat supporting PHP

2007-07-18 Thread Joe Nathan


arjan tijms wrote:
> 
> 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.
> 
You only see from your own pond. There are a lot bigger community
out there! There are far more people doing some kind of web-development
for own business, personal website, or professional web-development.
These people don't know much programming, not counted in programmining 
market. Many of them know PhP, ASP, etc., and javaScript (nothing to do with
java).

I don't see many web-sites running with Java AS! They are almost in PhP!
To learn PhP, you don't need to spend thousands of dollars to buy
dozens of books, like I did in the past. I have no PhP books.
That easiness makes PhP polular amongst amateurs and professional
web-developers. 

regards.



-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11679832
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-18 Thread M4N - Arjan Tijms

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]



Re: Tomcat supporting PHP

2007-07-17 Thread George Sexton
As an exercise, why don't you write a couple of these trivial libraries. 
 Start with the database ones. They should be very easy since there is 
a database layer on Java, and a database layer on PHP.


If you think I'm being sarcastic, you're right. You're trivializing 
things you don't understand.



Joe Nathan wrote:


George L. Sexton-2 wrote:
It's not just writing a byte-code compiler that would convert the PHP to 
java code, or even a parser that would re-write a PHP page into JSP. 
It's creating the massively large library of functions.



Isn't it true that most of libs are already in Java packages?
Most of them will need just adaptors. Some other legacies,
we may scrap!

regards.



--
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/

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



Re: Tomcat supporting PHP

2007-07-17 Thread Joe Nathan


George L. Sexton-2 wrote:
> 
> It's not just writing a byte-code compiler that would convert the PHP to 
> java code, or even a parser that would re-write a PHP page into JSP. 
> It's creating the massively large library of functions.
> 
Isn't it true that most of libs are already in Java packages?
Most of them will need just adaptors. Some other legacies,
we may scrap!

regards.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11661491
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-17 Thread pankaj narang
even it will be easy to use php and jsp,struts like technologies altogether if 
needed using same tomcat container 
   
  Pankaj

Joe Nathan <[EMAIL PROTECTED]> wrote:
  
PHP is based on interpreter. Instead, pre-compiler as in JSP can
improve performance of PHP significantly. Then there will be lots of
people switching to Tomcat

regards.


pankaj narang wrote:
> 
> Hello
> 
> I am listening everything silently here but I think Joe is correct 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11659609
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



   
-
 Download prohibited? No problem. CHAT from any browser, without download.

Re: Tomcat supporting PHP

2007-07-17 Thread George Sexton
PHP is an interpreter, but there is a large library of functions written 
in Native code that would have to be supported.


It's not just writing a byte-code compiler that would convert the PHP to 
java code, or even a parser that would re-write a PHP page into JSP. 
It's creating the massively large library of functions.




Joe Nathan wrote:

PHP is based on interpreter. Instead, pre-compiler as in JSP can
improve performance of PHP significantly. Then there will be lots of
people switching to Tomcat

regards.


pankaj narang wrote:

Hello
   
  I am listening everything silently here but  I think Joe  is correct 
 




--
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/

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



Re: Tomcat supporting PHP

2007-07-17 Thread Joe Nathan

PHP is based on interpreter. Instead, pre-compiler as in JSP can
improve performance of PHP significantly. Then there will be lots of
people switching to Tomcat

regards.


pankaj narang wrote:
> 
> Hello
>
>   I am listening everything silently here but  I think Joe  is correct 
>  

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11659609
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-17 Thread Pid

Joe Nathan wrote:



Pid-2 wrote:

And how are you judging that?


You should ask Redhat!


Rather than this turn into big ideological argument, I'd just like to 
suggest to the OP that the Java world might be bigger than he'd 
appreciated - and that it's more meaningful to use the right tool for 
the job in hand.


Tomcat & PHP are not really a good pairing, as has been previously 
stated.  As far as dynamic scripting languages go, Tomcat is better 
paired with something like Groovy.


I think the OP being a little naive to suggest to this list that it's 
members aren't aware of other languages and their respective uses or 
sector popularity.




I meant to ask "by what type of unit are you measuring 'bigger'?", as 
it's a pretty vague term to use.  Counting lots of 'small' websites* 
would be one way, but you could count by, say, Open Source project commits:


http://www.ohloh.net/languages;compare?l4=php&l1=-1&l5=ruby&l2=java&l6=-1&commit=Update&l0=cncpp&l3=-1

And then you might think that 'the PHP world' is a lot smaller than Java 
or C/C++ and that Tomcat should be expanded to run scripts in C/C++**




p



*  Yes, big ones too
** Yes, CGI, I know



For example,
My products are in Java!
But my business website is in PHP!
I see my ISP a;one having customers in thousands 
who might be using PHP, no Java support. It's the same
for most small websites, because they cannot hire 
expensive Java programmers!


regards.






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat supporting PHP

2007-07-17 Thread Lilianne E. Blaze
Joe Nathan wrote:
> Mladen Turk-3 wrote:
>   
>> Why would someone wish to do that at the first place.
>>
>> 
> You should realize that PHP world is lot bigger than Java world!
> Having both will have many merits.
>
>
>   
So is non-programmer world than programmer world. So is Mensa world 
than non-Mensa world. Last time I checked, it was quality, non quantity,
and when it comes to quality, php is about 10 years, if not more, behind
Java. A bridge to php would be a nice thing to have, yes, but a native
php implementation in Java would be just a huge waste of effort.

In my opinion it would be pretty much enough to improve what
documentation exists (for example http://wiki.apache.org/tomcat/UsingPhp
) and include it on http://tomcat.apache.org/tomcat-6.0-doc/index.html .
Anything beyond that, honestly, is just pointless.

Greetings, Lilianne E. Blaze

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



Re: Tomcat supporting PHP

2007-07-17 Thread pankaj narang
Hello
   
  I am listening everything silently here but  I think Joe  is correct 
  

Joe Nathan <[EMAIL PROTECTED]> wrote:
  


Pid-2 wrote:
> 
> And how are you judging that?
> 
You should ask Redhat!

For example,
My products are in Java!
But my business website is in PHP!
I see my ISP a;one having customers in thousands 
who might be using PHP, no Java support. It's the same
for most small websites, because they cannot hire 
expensive Java programmers!

regards.


-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11647154
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



   
-
 Unlimited freedom, unlimited storage. Get it now

Re: Tomcat supporting PHP

2007-07-17 Thread Joe Nathan



Pid-2 wrote:
> 
> And how are you judging that?
> 
You should ask Redhat!

For example,
My products are in Java!
But my business website is in PHP!
I see my ISP a;one having customers in thousands 
who might be using PHP, no Java support. It's the same
for most small websites, because they cannot hire 
expensive Java programmers!

regards.


-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11647154
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-17 Thread Pid

Joe Nathan wrote:


Mladen Turk-3 wrote:

Why would someone wish to do that at the first place.


You should realize that PHP world is lot bigger than Java world!
Having both will have many merits.



And how are you judging that?

p





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat supporting PHP

2007-07-16 Thread Joe Nathan


Mladen Turk-3 wrote:
> 
> Why would someone wish to do that at the first place.
> 
You should realize that PHP world is lot bigger than Java world!
Having both will have many merits.


-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11643194
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-16 Thread Markus Schönhaber
Joe Nathan schrieb:

> I mean PHP scripts are processed as JSP are handled inside Tomcat 
> without installing any other things as built-in features. Imagine if 
> Tomcat can handle JSP, PHP, even ASP script pages! Then who will 
> not use this!

I will not use this.
I'm not interested in PHP at all. And I wouldn't want a servlet
container bloated with features I don't want nor ever will need.

Regards
  mks

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



Re: Tomcat supporting PHP

2007-07-16 Thread Mladen Turk

Joe Nathan wrote:


Henri Gomez wrote:

Do you want a 100% Java PHP engine or just a simple native to Java bridge
?



I mean PHP scripts are processed as JSP are handled inside Tomcat 
without installing any other things as built-in features. Imagine if 
Tomcat can handle JSP, PHP, even ASP script pages! Then who will 
not use this!




Why would someone wish to do that at the first place.
Those are completely different systems with completely
different technology. The only usage is consolidation of the
technology and lowering down the time for consolidation
to a particular technology.

The are some attempts for PHP like a simple CGI or a
JBoss Reflex, and even some project (think its commercial)
that has PHP engine and modules rewritten in Java.
However their main usage is for easing you to switch to
the real stuff (main Tomcat technology; jsp and servlets).

Regards,
Mladen.

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



Re: Tomcat supporting PHP

2007-07-16 Thread Joe Nathan


Henri Gomez wrote:
> 
> Do you want a 100% Java PHP engine or just a simple native to Java bridge
> ?
> 

I mean PHP scripts are processed as JSP are handled inside Tomcat 
without installing any other things as built-in features. Imagine if 
Tomcat can handle JSP, PHP, even ASP script pages! Then who will 
not use this!


-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11612860
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-16 Thread Henri Gomez

2007/7/16, jean-frederic clere <[EMAIL PROTECTED]>:

Joe Nathan wrote:
> I am talking about in-built capability that people do NOT need
> to install heaps of cranky-installation software packages!


Do you want a 100% Java PHP engine or just a simple native to Java bridge ?

Regards

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



Re: Tomcat supporting PHP

2007-07-16 Thread jean-frederic clere

Joe Nathan wrote:

I am talking about in-built capability that people do NOT need
to install heaps of cranky-installation software packages!


You may try http://labs.jboss.com/wiki/Jbossweb and 
http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modules/php/index.html


Cheers

Jean-Frederic



regards.



Yoav Shapira-2 wrote:

Hey,

On 7/14/07, Bill Barker <[EMAIL PROTECTED]> wrote:

"Joe Nathan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

I think if Tomcat also supports PHP scripts, it could be wonderful!.

Google is your friend :) http://www.google.com/search?q=php+servlet.

I don't think that there is much interest in hosting a PHP servlet in
Tomcat
however.

Bill's right.

I also wrote up (the initial version of)
http://wiki.apache.org/tomcat/UsingPhp a while ago, if you're still
interested in this approach.

Yoav

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








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



Re: Tomcat supporting PHP

2007-07-15 Thread Joe Nathan

I am talking about in-built capability that people do NOT need
to install heaps of cranky-installation software packages!

regards.



Yoav Shapira-2 wrote:
> 
> Hey,
> 
> On 7/14/07, Bill Barker <[EMAIL PROTECTED]> wrote:
>>
>> "Joe Nathan" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> >
>> > I think if Tomcat also supports PHP scripts, it could be wonderful!.
>>
>> Google is your friend :) http://www.google.com/search?q=php+servlet.
>>
>> I don't think that there is much interest in hosting a PHP servlet in
>> Tomcat
>> however.
> 
> Bill's right.
> 
> I also wrote up (the initial version of)
> http://wiki.apache.org/tomcat/UsingPhp a while ago, if you're still
> interested in this approach.
> 
> Yoav
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11606570
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-15 Thread Yoav Shapira

Hey,

On 7/14/07, Bill Barker <[EMAIL PROTECTED]> wrote:


"Joe Nathan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I think if Tomcat also supports PHP scripts, it could be wonderful!.

Google is your friend :) http://www.google.com/search?q=php+servlet.

I don't think that there is much interest in hosting a PHP servlet in Tomcat
however.


Bill's right.

I also wrote up (the initial version of)
http://wiki.apache.org/tomcat/UsingPhp a while ago, if you're still
interested in this approach.

Yoav

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



Re: Tomcat supporting PHP

2007-07-14 Thread Joe Nathan


Bill Barker-2 wrote:
> 
> Google is your friend :) http://www.google.com/search?q=php+servlet.
> I don't think that there is much interest in hosting a PHP servlet in
> Tomcat 
> however.
> 

I didn't find much useful info from search.
I think there may be lots of people to have a single server doing it all!
At the moment, I have to deal with Apache, PHP, Tomcat, Axis2, ...
It's a very messy business. If you build off-the-shelf type applications,
this is terrible thing to have for end-users!

regards.




-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11599227
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



Re: Tomcat supporting PHP

2007-07-14 Thread Bill Barker

"Joe Nathan" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
> I think if Tomcat also supports PHP scripts, it could be wonderful!.

Google is your friend :) http://www.google.com/search?q=php+servlet.

I don't think that there is much interest in hosting a PHP servlet in Tomcat 
however.

> -- 
> View this message in context: 
> http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11597960
> Sent from the Tomcat - Dev mailing list archive at Nabble.com. 




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



Tomcat supporting PHP

2007-07-14 Thread Joe Nathan

I think if Tomcat also supports PHP scripts, it could be wonderful!
-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11597960
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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