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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -