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
Post a Comment