Hello,
I've written a small web server and I'd like to add support for php to
the server. Could anyone direct me to documentation or examples and give
me some sense of how hard this would be. Put another way, if I have a
working PHP installation and a web server how do the two communicate?
The webserver is written in javascript running on rhino which in turn
runs on java so probably the access would be through java.
Thanks
Terry
Hello,
I've written a small web server and I'd like to add support for php to the
server. Could anyone direct me to documentation or examples and give me some
sense of how hard this would be. Put another way, if I have a working PHP
installation and a web server how do the two communicate?The webserver is written in javascript running on rhino which in turn runs
on java so probably the access would be through java.
The most simple way is to use cgi or fastcgi protocol. I think, there
should be some java-libraries implementing that
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/
Hello
2009/2/5 Terry Braun tab@talking.com:
Hello,
I've written a small web server and I'd like to add support for php to the
server. Could anyone direct me to documentation or examples and give me some
sense of how hard this would be. Put another way, if I have a working PHP
installation and a web server how do the two communicate?
Currently theres no SAPI documentation, however like Alexey said it
would probably be easier to just the cgi/fastcgi protocol.
The webserver is written in javascript running on rhino which in turn runs
on java so probably the access would be through java.Thanks
Terry
--
Kalle Sommer Nielsen
Hi,
Currently theres no SAPI documentation, however like Alexey said it
would probably be easier to just the cgi/fastcgi protocol.
There's a chapter in Sara's book. sapi/embed is a quite simple example
of an SAPI. But I agree (Fast)GI sounds like a saner way,else you'd have
to provide some C wrapper giving you some APIs you can use from your
Java code. Directly using PHP APIs via JNI doesn't really sound like
fun.
johannes
Hi,
just a suggestion, have you thought about using Quercus [http://www.caucho.com/resin-3.0/quercus/
]
or Project Zero [http://www.projectzero.org/download/]?
This projects are implementing PHP in Java.
Regards
Stefan
Hello,
I've written a small web server and I'd like to add support for php
to the server. Could anyone direct me to documentation or examples
and give me some sense of how hard this would be. Put another way,
if I have a working PHP installation and a web server how do the two
communicate?The webserver is written in javascript running on rhino which in
turn runs on java so probably the access would be through java.Thanks
Terry