-----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-----

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to