How would I go about having a shell command executed if the button is turn on?
I know of the shell_exec command for php but am unfarmilar with the implamentation of it or another command in jquery
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>