Re: CLI: input password without showing it

From: Date: Sat, 23 Jul 2011 19:16:36 +0000
Subject: Re: CLI: input password without showing it
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-54162@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/23/2011 12:07 PM, Reindl Harald wrote: > hi > > is there any way to request a password from a user without showing > the input in the terminal? > > $input_pwd = trim(fgets(STDIN)); > > works nice as long no foreigner is in the room :-( Really not an internals question. This is more a StackOverflow type of question, where in fact this has been asked and answered a couple of times: http://stackoverflow.com/questions/187736/command-line-password-prompt-in-php - -Rasmus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4rHhQACgkQlxayKTuqOuDJTgCfc8gHHXqc2hioxYqA5aOGmhpk OeAAnArlpmj+jbeyAmxbsHtxRIwNwN+o =nU1k -----END PGP SIGNATURE-----

« previous php.internals (#54162) next »