|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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)? -- Wolf a.k.a. Juha Laiho Espoo, Finland (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++ "...cancel my subscription to the resurrection!" (Jim Morrison) |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
No Such User wrote:
> Is there any way I can get the output of servlets to be run through php > before apache sends it all out? > You're assuming the Apache filter architecture, which enables that kind of thing. Ask the PHP developers when they're going to make it into this century. Or use some other technology (either in apache or tomcat) for your filtering. -- Nick Kew |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|