私は以下のコードを持っています
<html>
<body>
<?php
if ($_GET['run']) {
  # This code will run if ?run=true is set.
 echo "Hello";
  exec ("chmod a+x ps.sh");
  exec ("sh ps.sh");
}
?>
<!-- This link will add ?run=true to your URL, myfilename.php?run=true -->
<a href="?run=true">Click Me!</a>
今、私exec ("chmod a+x ps.sh")は正しく実行されているかどうかを知りたいです。私は何をすべきか??