title: illegal command error code 127 in php exec function
body: <p>I am using this php code:</p>
  
  <pre><code>exec("unrar e file.rar",$ret,$code);
  </code></pre>
  
  <p>and getting an error code of illegal command ie 127 ... but when I am using this command through ssh its working ... because unrar is installed on the server ... so can anyone guess why exec is not doing the right stuff?</p>