Running python script from php -


i trying run python script php.

exec("../cgi-bin/form.py", $output); var_dump($output); 

i'm path correct, , form.py executable.

this form.py

#!/usr/bin/env python print "in form.py' 

however, prints out null. don't think script being executed. how make sure is?

you're literally typing in location of file. need tell exec execute python script.

exec("python ../cgi-bin/form.py", $output); 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -