Re: adding support for PHP to a web server
| From: | Terry Braun | Date: | Thu, 05 Feb 2009 19:59:33 +0000 |
| Subject: | Re: adding support for PHP to a web server | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42948@lists.php.net to get a copy of this message | ||
Thanks to everyone for the help. One last hopefully quick and not too naive question - can I just exec php and pipe input and output? There is probably some good reason that is not obvious to me.
terry
Johannes Schlüter wrote:
Hi, On Thu, 2009-02-05 at 17:08 +0100, Kalle Sommer Nielsen wrote: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