phpython Code
a python interpreter written in php
Status: Pre-Alpha
Brought to you by:
francescobianco
a/trunk/phpython.lib.php | b/trunk/phpython.lib.php | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | |||
3 | |||
2 | require_once("python/python.lib.php"); |
4 | require_once("python/python.lib.php"); |
3 | 5 | ||
4 | 6 | ||
5 | function phpython($filename) { |
7 | |
6 | $code = file_get_contents($filename); |
||
7 | |||
8 | python_eval($code); |
||
9 | } |