Helpful Information
Home
Categories
Contact us
Category: Python
python in php
hi friends ,
i want to know is it possible to call python in php
e,g
i have functions made in python
is it possible to call python function in php page to and then diesplay the result through php
what about this?
http://www.csh.rit.edu/~jon/projects/pip/
test.py:
a = ['Mary','had','a','little','lamb'];
for i in range(len(a)):
print i, a[i]
test.php:
<?php
passthru('python ' . $_SERVER['DOCUMENT_ROOT'] . 'test.py');
?>
or:
http://www.python.org/doc/essays/ppt/sd99east/index.htm
best regards
privacy (GDPR)