I want to run a .php
file in windows cmd.
I followed this (suggestion)
php is not recognized as an internal command (in Windows)
But it did not work.
I tried this command prompt:
C:\Windows\system32> cd \myfolder
And within myfolder
I did as follows:
C:..\myfolder> php file.php
but I get an error "php is not recognized as internal or external"
But when I try without php
command like this;
C:..\myfolder> file.php
it just opens in notepad, yet I want to run it in cmd
.
How can I do it?