PHP Command Line Interface

PHP CLI Options (Usage)

PHP CLI is very easy to use. However, it is very flexible. The flexibility appears in number of options available in command. The simplest way to use PHP CLI is just to type "php file.php" in your command line. (obviously you should have valid php file named file.php in the folder you currently in and may rename the file as you want).
Here is more complex usage:
Here is a list of all possible options for PHP CLI:
-aRun interactively
-c<path>|<file>Look for php.ini file in this directory
-nNo php.ini file will be used
-d foo[=bar]Define INI entry foo with value 'bar'
-eGenerate extended information for debugger/profiler
-f <file>Parse <file>.
-hThe help
-iPHP information
-lSyntax check only (lint)
-mShow compiled in modules
-r <code>Run PHP <code> without using script tags <?..?>
-B <begin_code>Run PHP <begin_code> before processing input lines
-R <code>Run PHP <code for every input line
-F <file>Parse and execute <file> for every input line
-E <end_code>Run PHP <end_code> after processing all input lines
-HHide any passed arguments from external tools.
-sDisplay colour syntax highlighted source.
-vVersion number
-wDisplay source with stripped comments and whitespace.
-z <file>Load Zend extension <file>.
Arguments (args) might be passed to script. Use -- args when first argument starts with - or script is read from stdin:
--rf <name>Show information about function <name>.
--rc <name>Show information about class <name>.
--re <name>Show information about extension <name>.