CLI: input password without showing it
| From: | Reindl Harald | Date: | Sat, 23 Jul 2011 19:07:58 +0000 |
| Subject: | CLI: input password without showing it | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-54161@lists.php.net to get a copy of this message | ||
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 :-(
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc