Page 1 of 1

Can user input be requested/retrieved from CLI, ie stdin()?

Posted: Sat May 18, 2002 12:15 pm
by techniq
I would like to prompt for user input in a php cli script, like stdin(), then assign the input to variables. Is this possible with PHP. I'm running 4.2.1(Windows & Linux x86).

Thanks.

Posted: Sat May 18, 2002 12:45 pm
by EvilWalrus
check out scanf() and related functions in the manual