title: command is not running from php script using shell_exec() or system() or exec() functions
body: <p>I am working on Windows server and able to run command from command prompt </p>
  
  <pre><code>c:&gt; %convertxls% {some args....}   
  </code></pre>
  
  <p>But when I run same command from php script </p>
  
  <pre><code>*shell_exec(%convertxls% ..... 2&gt;&amp;1);*
  </code></pre>
  
  <p>it gives me error as</p>
  
  <p><strong>%convertxls% is not recognized as an internal or external command, operable program or batch file.</strong></p>
  
  <p>I think when I am running command from command prompt, it run for user which logged in. And when I run the php script it run for "www" user for which path is not set.</p>
  
  <p>Can anybody tell me where I am doing mistake?</p>
  
  <p>*Note: I haven't written complete command.</p>