B.5 CLI Always Provides argv and argc

 <  Day Day Up  >  

The $argv and $argc variables are always available in the command-line version of PHP 5. This happens even if the register_argc_argv configuration setting is set to Off .

The $_SERVER superglobal variable also contains entries for $_SERVER['argv'] and $_SERVER['argc'] if your variables_order configuration directive contains an S to enable this variable.

 <  Day Day Up  >  


Upgrading to PHP 5
Upgrading to PHP 5
ISBN: 0596006365
EAN: 2147483647
Year: 2004
Pages: 144

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net