|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-07 08:28 UTC] web at affenkrieger dot de
Using php on the command line, the variables $argv and $argc are not set even when arguments are present. I used the newest win32 zip package from php.net. But it worked on a linux system ... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
this is the script 'test.php' ----- <?php print_r($argv); ?> ----- when called via c:\>php -f test.php test bla testagain it should print: ------ Array ( [0] => test.php [1] => test [2] => bla [3] => testagain ) ----- but nothing happens. i used php 4.2.3 win32 binaries (zip) on a WinNT SP6 PC. all other things seem to work.