Welcome! Log In Create A New Profile

Advanced

[PHP] One other question re: cli

Posted by Jeffry Killen 
Jeffry Killen
[PHP] One other question re: cli
January 15, 2018 03:40AM
Hi again;
Where would I find manual info re passing arguments from
command line to a php cli script?

Is there something like "include(stdin)" necessary, and how
would I refer to the arg?

Thanks for time and attention;
Jeff K

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Aziz Saleh
Re: [PHP] One other question re: cli
January 15, 2018 03:40AM
On Sun, Jan 14, 2018 at 9:29 PM, Jeffry Killen <[email protected]> wrote:

> Hi again;
> Where would I find manual info re passing arguments from
> command line to a php cli script?
>
> Is there something like "include(stdin)" necessary, and how
> would I refer to the arg?
>
> Thanks for time and attention;
> Jeff K
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Couple of options:

http://php.net/manual/en/function.getopt.php (which I prefer)

or old fashion way:
http://php.net/manual/en/reserved.variables.argv.php
Jeffry Killen
Re: [PHP] One other question re: cli
January 15, 2018 04:30AM
> On Jan 14, 2018, at 6:33 PM, Aziz Saleh <[email protected]> wrote:
>
>
>
> On Sun, Jan 14, 2018 at 9:29 PM, Jeffry Killen <[email protected]> wrote:
> Hi again;
> Where would I find manual info re passing arguments from
> command line to a php cli script?
>
> Is there something like "include(stdin)" necessary, and how
> would I refer to the arg?
>
> Thanks for time and attention;
> Jeff K
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Couple of options:
>
> http://php.net/manual/en/function.getopt.php (which I prefer)
>
> or old fashion way:
> http://php.net/manual/en/reserved.variables.argv.php
>

Thank you for time and attention;
Jeff K
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login