title: Stop direct execute php code without button click
body: <p>I need to let the code below to stop directly execute the code without button click. I want the function to run when button is click on it. Thanks for the help</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script language="javascript" type="text/JavaScript"&gt;
  {
  function popup() {
  &lt;?php echo shell_exec('sh bash_test.sh') ?&gt;;
  }
  }    
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input type="button" onclick="popup()" value="popup"&gt;
  
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>