Executing PHP script from command line
Executing PHP scripts from command line is quite easy. You just need to know the right commands to execute your script. This procedure comes in handy while developing command line scripts.
*NIX OS:
/path/to/php -f /path/to/script.php
Windows OS:
X:\path\to\php.exe -f X:\path\to\script.php
-f parses and executes <file>. For a list of command line parameters, visit:
PHP: Using PHP from the command [...]