Hi everyone, i'm trying to get it so when i visit my webpage called start.php it executes the command (/bigbrotherbot start) in the terminal which then should start the process on my linux machine.
I'm currently using this code
This script doesn't appear to do anything though. I'm very new to php and would really appreciate the help.
shell_exec('sudo /bigbrotherbot start');
P.S the file bigbrotherbot is the bash script which works if i actually go to the terminal myself and type /bigbrotherbot start yet when i try to make the php do it it doesnt do anything.