passing data from PHP to python

Andrey Revyakin revyakag at umdnj.edu
Sun Aug 12 18:25:27 EDT 2001


I would like to exe a python module from php.
In the simpliest case, I have a "test.py" file like this:

#!/usr/local/bin/python
print "test"

and I call it from php like this

system("python test.py");

Works fine. Now, what if I need to pass an argument from php to the
"test.py" module? How do I do that?

Andrey Revyakin.





More information about the Python-list mailing list