phpython Wiki
a python interpreter written in php
Status: Pre-Alpha
Brought to you by:
francescobianco
A sample of use...
:::php
<?php
## my_php_file.py
## embed phpython library
require_once("phpython.lib.php");
## run and generate output
python_run("my_python_file.py");
?>
This sample code run the next file
:::python
## my_python_file.py
for i in range(0,10):
print i, i*i