i just wanted to ask you how i can run my python script from php! I tried shell_exec, exec, system and passthru - noting happened.
www-data has sudo acces (sudoers).
If i do it with sudo su www-data i can run the script.
Thats confusing to me.
My script looks like this:
echo '<pre>';
echo $output = shell_exec('/usr/bin/python /var/www/inc/send.py');
echo '</pre>';
Thanks for your help!
$output. What is its value?$outputis empty. There's no output. If i do it withls -alfor example i get an output./dev/null...