Posted by petersprc on 07/13/07 00:43
You can call "stty -echo" to disable echo'ing on the terminal. Here's
a script to do it:
http://marc.info/?l=php-dev&m=117442143122154
On Jul 12, 6:56 pm, emerth <eme...@hotmail.com> wrote:
> Hi,
>
> I have a command line PHP script that logs into a network service with
> a user name specified on the command line. The script then prompts for
> a password.
>
> Currently the password is echoed on the screen/terminal as it is
> typed.
>
> Is it possible to stop the password being echoed on the command line
> while it is typed? Or perhaps just print asterix's instead of the
> literal characters?
>
> A few details: platform is Linux, PHP version is 4.3.9.
>
> Cheers!
[Back to original message]
|