Re: Re: New web server
| From: | Johannes Schlüter | Date: | Mon, 25 Jul 2011 18:51:42 +0000 |
| Subject: | Re: Re: New web server | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54191@lists.php.net to get a copy of this message | ||
On Sun, 2011-07-24 at 00:03 +0200, Ferenc Kovacs wrote:
> >> On Sat, Jul 23, 2011 at 10:02 PM, IraQue IraQue <iraque1@live.com> wrote:
> >> >
> >> > Hi there PHP!
> >> >
> >> > I am developing a new web server, and i would like to make it possible
> >> > to include PHP in it.
As Ferenc said best is to use FastCGI by that you have the least
complexity and a clear separation.
If you really want to run it in one process you can build your own SAPI.
Besides the code in php-src/SAPI/ you can look out for Sara Golemon's
book "Extending and Embedding PHP" (978-0672327049) which is at the
state of PHP 5.2 but there are very few relevant changes, if at all.
> >> > However i am not that good at C, to figure out how to include it.
Good C knowledge, especially about daemon programming, would be a good
foundation for any work in that area.
johannes