Re: How to give parameters to a console php-script?
| From: | DL Neil | Date: | Mon, 02 Dec 2002 14:40:01 +0000 |
| Subject: | Re: How to give parameters to a console php-script? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126717@lists.php.net to get a copy of this message | ||
Martin,
Ah yes, the famous 'read the upgrade notes - gotcha'!
Well done, you figured it out...
=dn
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>