Re: how to give vars to a php(shell env) script?
| From: | Ray Hunter | Date: | Wed, 24 Apr 2002 04:12:47 +0000 |
| Subject: | Re: how to give vars to a php(shell env) script? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94304@lists.php.net to get a copy of this message | ||
Pass the variables at the command line...
$ARGV[i]
and
$ARGC deteremines the number of variables passed...
Try it and see what happens
"Hermann Bier" <kpot@gmx.net> wrote in message
news:3CC619A0.1090904@gmx.net...
> Hi NG!
>
> how could i give some vars to a php script, that is directly executed by
> php-parser. for instance:
>
> #!/usr/bin/php -q
> <?
> echo "$SOME_VAR";
> ?>
>
> is it possible at all?
>
> thanx for advance.
>
> Hermann Bier
>