title: PHP exec() function windows 7 IIS 7.5
body: <p>I am trying to run an a command line util using exec() but it doesnt return anything. I have read on php.net that the permissions on cmd.exe need to be set to allow the iis user to run it. I have not been able to do this using any method I can think of. cacls icacls and the standard security screen dont work. I am logging the output to a mysql database.</p>
  
  <p>my code looks like this:</p>
  
  <pre><code>$Ret = array();
  $err = "";
  exec("dir", $Ret, $err);
  </code></pre>
  
  <p>in the db I get array for $Ret</p>
  
  <p>Either something is wrong with the command, I doubt it, or I need to set the permissions somehow. </p>
  
  <p>Please help.</p>