Re: How to give parameters to a console php-script?
| From: | Martin Thoma | Date: | Mon, 02 Dec 2002 14:22:28 +0000 |
| Subject: | Re: How to give parameters to a console php-script? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126716@lists.php.net to get a copy of this message | ||
ll I found a
register_argc_argv = On
in my php.ini, which should work then. But I also found, that I have to use
print "Ok: ".$_SERVER["argv"][1];
instead of
print "Ok: ".$argv[1];
Martin