The Artima Developer Community
Sponsored Link

Python Buzz Forum
WPHP

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
WPHP Posted: Oct 7, 2006 1:17 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: WPHP
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

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.

Read: WPHP

Topic: Happy Birthday to Plone! Previous Topic   Next Topic Topic: Encrypting file systems

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use