Using $argc and $argv
| From: | William Cheung | Date: | Thu, 14 Nov 2002 00:11:50 +0000 |
| Subject: | Using $argc and $argv | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-9128@lists.php.net to get a copy of this message | ||
I am using PHP 4.2.3 w/ Win 2k Pro and I have the directive
register_argc_argv = On.
My php script is as follow
<?php
var_dump($argv);
?>
When I run in command line
php -f test.php one two three
It returns
NULL
Does anyone know what I missed?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.