ID: 20515 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.3 New Comment:
I have find the solution: foreach($_SERVER['argv'] as $k=>$v) echo "$k -> $v \n"; 0 -> argv.php 1 -> pippo 2 -> peppo But i thik it isent documented Previous Comments: ------------------------------------------------------------------------ [2002-11-20 06:40:59] [EMAIL PROTECTED] Yes derick .. but in my php.ini the register_globals is On ! register_argc_argv = On register_globals = On Have you the solution ? please? Enrico Plantulli ------------------------------------------------------------------------ [2002-11-20 06:24:32] [EMAIL PROTECTED] In PHP 4.2.0, the 'register_globals' setting default changed to 'off'. See http://www.php.net/release_4_2_0.php for more info. We are sorry about the inconvenience, but this change was a necessary part of our efforts to make PHP scripting more secure and portable. ------------------------------------------------------------------------ [2002-11-20 06:23:54] [EMAIL PROTECTED] In PHP 4.2.3 on Linux RedHat 7.3 when i try to pass some variable in this way: php -q scrip.php first second the otput don't echo me the first and second. ( don't register the variable in argv array) On a binary on php 4.1.1 this work fine and work fine also on Windows version of php 4.2.3. Enrico Plantulli ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20515&edit=1
