Afficher un message
Vieux 07/04/2005, 06h32   #4
Nikola Milutinovic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache, Tomcat and PHP -- why not?

Juha Laiho wrote:
> nospam@hanmail.net (No Such User) said:
>
>>I am running Apache 2.0.53 with PHP 4.3.10 and tomcat 4.1.31 on Solaris 9.
>>Apache runs PHP flawlessly, and tomcat runs via mod_jk through apache, also
>>flawlessly. My one problem is, pages served up by tomcat to apache don't
>>get run through PHP. I would like to put php code in my servlets, but
>>right now that code gets passed through unexecuted.
>>
>>Is there any way I can get the output of servlets to be run through php
>>before apache sends it all out?

>
>
> I think I've seen some indications of being able to run the PHP interpreter
> from within Tomcat. With that kind of set-up this might be possible.
> That way you'd end up with chain Apache-Tomcat-PHP.
>
> In context of Apache, PHP and Tomcat are parallel -- so they do not nest.
> Perl (in form of mod_perl) has the capabilities needed to extend Apache
> funtionality, so that would provide a way to modify content coming from
> Tomcat.
>
> But then, what are you doing that would be that much harder to implement
> in Java, either as JSP includes, or by postprocessing in a Tomcat Valve
> component (or even just a response filter)?


There is a PHP servlet that can execute PHP code within Tomcat, but I'm not sure
which PHP functions it supports.

Nix.
  Réponse avec citation
 
Page generated in 0,05580 seconds with 9 queries