You are here: Hide password input in CLI PHP script? « PHP Programming Language « IT news, forums, messages
Hide password input in CLI PHP script?

Posted by emerth on 07/12/07 22:56

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!

 

Navigation:

[Reply to this 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

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