title: PHP is not recognized as an internal or external command in command prompt
body: <p>I got the following error when I run a command with <code>php</code></p>
  
  <pre><code>C:\xampp\htdocs&gt;php
  'php' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>I don't get any error when I run the command with <code>php</code> in following path:</p>
  
  <pre><code>C:\xampp\php&gt;php  //do not got error here
  </code></pre>
  
  <p>Why I get this error?</p>
  
  <blockquote>
    <p>'php' is not recognized as an internal or external command, operable program or batch file.</p>
  </blockquote>