SAPI documentation

php.internals

Michael O'Brien

22 years ago
Is there any documentation regarding the SAPI interface? I'm writing a SAPI module so that I can run PHP in a new embedded web server. Why, do I want to do this? Our server is designed for embedding in applications or devices and is a fast, multi-threaded, secure, portable, small-footprint web server that uses an apache configuration file format. It really is like a small, embeddable Apache. For devices or applications that want their own in-process personal web server, our server Mbedthis AppWeb is ideal. I want to support PHP in an embedded fashion but am struggling to find documentation on the SAPI interface. I can probably work it out from the code, but there don't seem to be pointers about what are the expectations by PHP on the SAPI module. Also, there seems to be quite a bit of diversity in the level of support offered by existing SAPI handlers. Any help or pointers to existing information will be appreciated. Michael O'Brien Lead Architect http://www.mbedthis.com

Wez Furlong

22 years ago
Hi Michael, There is no documentation except for the source code. I'd suggest using one of the other threaded SAPI's as a base and go from there (isapi and/or nsapi). --Wez. ----- Original Message ----- From: "Michael O'Brien" <mob@mbedthis.com> To: <internals@lists.php.net> Sent: Sunday, December 07, 2003 8:03 AM Subject: [PHP-DEV] SAPI documentation

Jani Taskinen

22 years ago
What about the sapi/embed ? :) --Jani On Sun, 7 Dec 2003, Wez Furlong wrote:

George Schlossnagle

22 years ago
On Dec 7, 2003, at 5:32 AM, Jani Taskinen wrote:
> > What about the sapi/embed ? :)
Probably not the best example of a general purpose SAPI.

Michael O'Brien

22 years ago
Wez, Thanks all for your responses. I've read the code of all the SAPI handlers and thought the nsapi or AOL code looked like a reasonable starting base. I might just document this as I go. Some documentation is really needed in this area. As a minimum, I can comment my SAPI code well and that will be a better guide for others. Michael O'Brien http://www.mbedthis.com On Sun, 07 Dec 2003 09:39:28 +0000, Wez Furlong wrote:

Alex Leigh

22 years ago
Michael, I've written a SAPI module for a threaded web-server, so I've been down this road of discovery. If you have any questions at all or want an overview, please feel free to get in touch with me. Alex
-- Alex Leigh - aleigh@tessier.com - www.configuredlight.com The difference between theory and reality is that in theory there is no difference. On Dec 8, 2003, at 1:43 AM, Michael O'Brien wrote: