title: How to select user input from a shell script in PHP?
body: <p>I've this shell script running from a PHP site.</p>
  
  <p>In the shell script (Audit shell script), 
  I have 3 options:</p>
  
  <p>1) Process script
  2) Display results 
  3) Exit</p>
  
  <p>Tried the codes below and doesn't seem to work, the PHP site displayed blanks.</p>
  
  <pre><code>&lt;?php
  
  
  
  session_start();
  
  
  exec('/Desktop/test.sh');
  exec('1');
  $output = exec('2');
  echo "&lt;pre&gt;$output&lt;/pre&gt;";
  
  ?&gt;
  </code></pre>
  
  <p>Any help will be greatly appreciated.</p>