Calling Python code from inside php

Diez B. Roggisch deets at nospam.web.de
Wed Apr 23 14:42:44 EDT 2008


vijay schrieb:
> Hi
>     I have a python code performing some computation for me.I have a
> html page which passes certain argumnets to a php page.This php page
> needs to pass on the value to the Python class and get the result
> back.
> How do I go about this??

Write a commandline-app in python, that does the work for you. Invoke 
that using php.

Or use something like pyphp - but I haven't used it, can't comment on 
its usability/support etc.

Diez



More information about the Python-list mailing list