|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-16 19:49 UTC] yoglets at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 19:00:01 2026 UTC |
Given the script: <? print_r($_SERVER['argv']); ?> When run via a shebang within the file: % test.php --a=1 --b=2 --c=3 Array ( [0] => ./test.php [1] => --a=1 [2] => --b=2 [3] => --c=3 ) Ok, that's good. Now, running the same script by calling the PHP binary directly: % php -f test.php --a=1 --b=2 --c=3 Array ( [0] => test.php [1] => --b=2 [2] => --c=3 ) Hey, where's my --a=1? I get these same results with 4.2.2 CGI, 4.2.3 CGI, and 4.2.3 CLI.