PHP Command line: how to run PHP from command line in Windows
In this quick PHP tip I show you how to set up Windows to run PHP from the command prompt (DOS – cmd). The key is to add the path to your PHP installation to your system’s environment variable (to the path). Once that’s done, you just need to run php.exe with the file you’d like to have the interpreter execute.
Copyright (c) 2013 Rodrigo Silveira http://www.easylearntutorial.com
source