PHP TutorialsPhp What is
PHP INI TutorialsPhp ini What is
Passing in variable information via the GET method is analogous to passing arguments to an executable. Many languages process such arguments in terms of argc and argv.
Argc is the argument count, and argv is an indexed array containing the arguments. If you would like to declare variables $argc and $argv and mimic this functionality, enable register_argc_argv.
This directive determines whether PHP registers $argv & $argc each time it runs. $argv contains an array of all the arguments passed to PHP when a script is invoked. $argc contains an integer representing the number of arguments that were passed when the script was invoked.
These arrays are extremely useful when running scripts from the command line. When this directive is enabled, registering these variables consumes CPU cycles and memory each time a script is executed. For performance reasons, this feature should be disabled on production servers.
Note: This directive is hardcoded to On for the CLI SAPI .