Simon Willison’s Weblog

Subscribe

Python in PHP

15th July 2002

Python in PHP (via HarryF on the SitePoint Forums):

As both a Python and PHP enthusiast, I wanted to bring these two systems together to promote even greater and more interesting development opportunities.

To that end, I’ve written a Python extension for PHP. In short, this extensions allows the Python interpretter to be embedded inside of PHP (think of PHP as the parent language with Python as its child). This allows native Python objects to be instantiated and manipulated from within PHP. There is also initial support for accessing PHP functions and data from within the embedded Python environment.

This is currently only an early proof of concept available as source code but it could turn in to something very cool indeed.

This is Python in PHP by Simon Willison, posted on 15th July 2002.

Next: Accessible fonts

Previous: Fifty two projects

Previously hosted at http://simon.incutio.com/archive/2002/07/15/pythonInPHP