phpython Code
a python interpreter written in php
Status: Pre-Alpha
Brought to you by:
francescobianco
--- a +++ b/trunk/python.interface.php @@ -0,0 +1,29 @@ +<?php + /* + * Sample Module template for "OH" + * + * use for write develop module interface + * to encampusulate opensource script into "OH" + */ + + // Interface function + function oh_function_python($tokens) { + global $oh_object_python; + return $oh_object_python; + } + + // Option file required + //require_once($oh['path']."/modules/mail/libmail.php"); + + // Main class of module + class oh_class_python { + function oh_class_python() { + } + function eval($pycode) { + } + } + + // Main object of module + global $oh_object_python; + $oh_object_python = new oh_class_python(); +?>