title: taskkill from PHP exec
body: <p>I have just tried to execute this:</p>
  
  <pre><code>function kill_hr(){
  
      exec("taskkill /IM uper.exe", $output = array(), $return);
  
      print_r($output);
  
      echo "&lt;br /&gt;".$return;
  
  }
  </code></pre>
  
  <p>However, the output is this and its not very useful:</p>
  
  <blockquote>
    <p>Array ( ) 1</p>
  </blockquote>
  
  <p>When the process doesn't exist its this:</p>
  
  <blockquote>
    <p>Array ( ) 128</p>
  </blockquote>
  
  <p>I am trying to work out why it gives me a 1 when the process exists - is this a permissions problem? If so, how can I rectify this?</p>