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.
More recent articles
- Notes from Bing Chat—Our First Encounter With Manipulative AI - 19th November 2024
- Project: Civic Band - scraping and searching PDF meeting minutes from hundreds of municipalities - 16th November 2024
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024