title: Run .php file in Windows Command Prompt (cmd)
body: <p>I want to run a <code>.php</code> file in windows cmd.
  I followed this (suggestion)
  <a href="https://stackoverflow.com/questions/2920903/php-is-not-recognized-as-an-intern-command-using-windows">php is not recognized as an internal command (in Windows)</a></p>
  
  <p>But it did not work. </p>
  
  <p>I tried this command prompt:<br/> <code>C:\Windows\system32&gt; cd \myfolder</code><br/></p>
  
  <p>And within <code>myfolder</code> I did as follows:<br/>
  <code>C:..\myfolder&gt; php file.php</code><br/>
  but I get an error "php is not recognized as internal or external" <br/></p>
  
  <p>But when I try without <code>php</code> command like this;<br/> <code>C:..\myfolder&gt; file.php</code><br/> 
  it just opens in notepad, yet I want to run it in <code>cmd</code>.<br/> How can I do it? </p>