title: exec() PHP not working in browser but working ok in terminal
body: <p>I am trying to do the following in my php file:</p>
  
  <pre><code>exec("java -jar /Applications/XAMPP/htdocs/Web/SimpleEncryption.jar hola", $output);
  </code></pre>
  
  <p>I get array(0) { }</p>
  
  <p>If I execute php file.php in the terminal it works.</p>
  
  <p>If I run </p>
  
  <pre><code>exec("whoami", $result);
  </code></pre>
  
  <p>I get Array ( [0] => daemon ) in the browser and Array ( [0] => dao ) in the terminal. dao=my user.</p>
  
  <p>I don't know what permissions I have to give and how to give them.</p>
  
  <p>Thanks</p>