title: php exec command does not work after i used putenv?
body: <p>I want to run command via php, what I've tried </p>
  
  <pre><code>&lt;?php
  $out=exec("pwd")
  echo $out
  ?&gt;
  </code></pre>
  
  <p><strong>Output:</strong>
  c//xampp/htdocscommands</p>
  
  <p>Problem arised in this case</p>
  
  <pre><code>&lt;?php
  putenv('PATH=C:\xampp\htdocs\command\execute ');
  $out=exec('pwd');
  echo $out;
  ?&gt;
  </code></pre>
  
  <p><strong>Output:</strong>
  operable program or batch file.</p>
  
  <p>Then I try to run even simple command exe("pwd"), I'm getting this error</p>
  
  <pre><code>operable program or batch file.
  </code></pre>
  
  <p>What I'm trying exactly is</p>
  
  <ol>
  <li>I need to run command via php exec or other syntex too</li>
  <li>I need to set the path right way</li>
  </ol>
  
  <p>e.g.: exec("cd path  some_command")</p>