# PHP support in a web server

- Thread: https://externals.io/message/45060
- Original archive: https://news-web.php.net/php.internals/45060
- Started by Terry Braun on 2009-07-22T19:41:15+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45060 — Terry Braun — 2009-07-22T19:41:15+00:00

URL: https://externals.io/message/45060#45060

Hi,
I have a created a small web server written in JavaScript (it runs on 
the Rhino engine).  http://github.com/talkingtab/whimjs/tree/master

I want to add PHP support. I understand that I need to support the 
fastcgi spec and that is the pipe between the server and PHP, but what 
are the variables and their names. If  fastcgi is the pipe and I'm 
trying to understand what needs to be sent down the pipe. I have not 
been able to find documentation, and even better would be a sample 
implementation in Java or python.

If this isn't the right place to ask, could some point me to the right 
place?

Thanks for the help!
Terry

---

## #45061 — Matteo Beccati — 2009-07-23T10:18:12+00:00

URL: https://externals.io/message/45060#45061 · In reply to: #45060

Terry Braun ha scritto:
> Hi,
> I have a created a small web server written in JavaScript (it runs on
> the Rhino engine).  http://github.com/talkingtab/whimjs/tree/master
> 
> I want to add PHP support. I understand that I need to support the
> fastcgi spec and that is the pipe between the server and PHP, but what
> are the variables and their names. If  fastcgi is the pipe and I'm
> trying to understand what needs to be sent down the pipe. I have not
> been able to find documentation, and even better would be a sample
> implementation in Java or python.
> 
> If this isn't the right place to ask, could some point me to the right
> place?

http://www.fastcgi.com/devkit/doc/fcgi-spec.html maybe?


Cheers
-- 
Matteo Beccati

OpenX - http://www.openx.org
