imental version of WPHP working last night. This allows you
to represent a PHP application as a WSGI application; you make
wphp.PHPApp(base_dir), and it'll spawn a PHP/FastCGI subprocess
and hand requests off there.
I asked a little while back about a FastCGI
server-side/client module, which is what this uses, but no such thing
existed. After trying really not very hard to write it myself, I
emailed Allan Saddi to see if
he was interested, and then he emailed me back an implementation the
next day. So that was pretty sweet. From there, WPHP just handles
starting the PHP process and fixing up the environment some (PHP
requires the SCRIPT_FILENAME environmental variable, for instance,
and we have to handle non-PHP files on our own).
This means that PHP applications can be embedded in Python systems.
This may not seem that exciting, until you have interesting WSGI
middleware. Authentication systems, templating, annotation and other kinds of middleware
can be layed over the PHP output.
Next up for me: finishing some work to let you embed
WSGI apps in Zope and vice versa.