I have to execute a shell script when pressing a button on a web page. For this I'm using php so I have created a button in the file test.php
<form method="get" action="buildMaster.php">
<input type="submit" value="Build Master" id="btnMaster">
</form>
when pressing the button, the php buildMaster.php is called:
<?php
shell_exec('touch /Users/testUser/xxx');
?>
To test, I just touch a file to see if the script is called but nothing happens. The browser (Safari on Mac Lion) goes to buildMaster.php but nothing happens. What am I doing wrong ?