I want to run a .php file in windows cmd. I followed this (suggestion) php is not recognized as an internal command (in Windows)
.php
But it did not work. >
You should declare Environment Variable for PHP in path, so you could use like this:
C:\Path\to\somewhere>php cli.php
You can do it like this