Reply to Re: Hide password input in CLI PHP script?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация