what exactly do you mean by "compile PHP as a servlet"? Isnt PHP written in
C/C++?

----- Original Message -----
From: "Joe Walnes" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 3:14 PM
Subject: Re: SV: Orionserver & php


> Or, if you're feeling daring...
>
> Compile PHP as a servlet and then place the classes and necessary
> servlet-mappings in your web-app.
>
> Then from your PHP, you can do stuff like:
>
> <%
> $ctx = new Java("javax.naming.InitialContext");
> $myHome = $ctx->lookup("ejb/MyBean");
> $me = $myHome->findByPrimaryKey($id);
> %>
>
> Name: <%= $me->name %>
> Age: <%= $me->age %>
>
> (hypothetical example).
>
> It's nice because servlet/JSP controllers can forward to or include PHP
> pages as if they are normal servlet/JSP pages, and PHP can access EJB's,
> ServletRequest, etc etc. Useful when Java is too scarey for
web-developers.
>
>
> -Joe
>
> At 13:35 12/12/2000 +0100, [EMAIL PROTECTED] wrote:
> >This is actually VERY easy to do, just compile a normal php cgi
executable
> >without apache integration and install it in your path...
> >
> >Dont touch anything in orion, but restart it... Then make a file in your
> >default webapp or something containing the following to test if it works:
> >
> >info.php <- filename
> >contents:
> ><?php
> >info();
> >?>
> >
> >If this shows a nice page with php information youre off and running :)
> >
> >Klaus Myrseth
> >
> >-----Opprinnelig melding-----
> >Fra: Joe Walnes [mailto:[EMAIL PROTECTED]]
> >Sendt: 12. desember 2000 13:07
> >Til: Orion-Interest
> >Emne: Re: Orionserver & php
> >
> >
> >Yes it does, and very well indeed. Nice thing is that PHP can interact
with
> >Java objects (such as EJB's) so it makes for a nice presentation layer.
> >
> >I await the flames.
> >
> >-Joe Walnes
> >
> >At 10:19 12/12/2000 +0200, you wrote:
> > >Hello folks,
> > >
> > >has anyone mixed orionserver and php?
> > >
> > >If you don't want to install Apache,
> > >but enable php, will it run over orionserver?
> > >
> > >Regards, Jukka
>
>


Reply via email to