|
|
|
@ -300,7 +300,7 @@ static void php_cli_usage(char *argv0) |
|
|
|
" %s [options] -r <code> [--] [args...]\n" |
|
|
|
" %s [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]\n" |
|
|
|
" %s [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]\n" |
|
|
|
" %s [options] [--] [args...]\n" |
|
|
|
" %s [options] -- [args...]\n" |
|
|
|
"\n" |
|
|
|
" -a Run interactively\n" |
|
|
|
" -c <path>|<file> Look for php.ini file in this directory\n" |
|
|
|
@ -325,25 +325,6 @@ static void php_cli_usage(char *argv0) |
|
|
|
" args... Arguments passed to script. Use -- args when first argument\n" |
|
|
|
" starts with - or script is read from stdin\n" |
|
|
|
"\n" |
|
|
|
"The PHP Command Line Interface 'CLI' supports the following operation modes:\n" |
|
|
|
"\n" |
|
|
|
" You can parse and execute files by using parameter -f followed by the\n" |
|
|
|
" name of the file to be executed.\n" |
|
|
|
"\n" |
|
|
|
" Using parameter -r you can directly execute PHP code simply as you would\n" |
|
|
|
" do inside a php file when using the eval() function.\n" |
|
|
|
"\n" |
|
|
|
" It is also possible to process the standard input line by line using either\n" |
|
|
|
" the parameter -R or -F. In this mode each separate input line causes the\n" |
|
|
|
" code specified by -R (see -r) or the file specified by -F to be executed.\n" |
|
|
|
" You can access the input line by $argn. While processing the input lines\n" |
|
|
|
" $argi contains the number of the actual line being processed. Further more\n" |
|
|
|
" the paramters -B and -E can be used to execute code (see -r) before and\n" |
|
|
|
" after input line processing respectively.\n" |
|
|
|
"\n" |
|
|
|
" If none of -r -f -B -R -F and -E is present but a single parameter is given\n" |
|
|
|
" then this parameter is taken as the filename to process (same as with -f)\n" |
|
|
|
" If no parameter is present then the standard input is read and executed.\n" |
|
|
|
, prog, prog, prog, prog, prog); |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
|