Run a script on a computer from php
问题 I'm unsuccessfully trying to execute a shell command from php. The goal is to switch on/off my music player of my computer/server via internet (with my phone for example). Here is what I would be able to do : I have a very simple file "play.sh" : Code: xdotool key XF86AudioPlay; echo "switched"; if I run it ./play.sh, that works (music player switches on/off) then I have an other very simple php file "play.php" : Code: <?php echo shell_exec("./play.sh"); ?> These two files are in the main