Re: password: mypassword --> *********

From: Date: Wed, 30 Apr 2003 10:18:07 +0000
Subject: Re: password: mypassword --> *********
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145750@lists.php.net to get a copy of this message
sorry... At 12:16 30-4-03, you wrote:
Thanks Chris but Im creating a Command Line PHP script and NOT web based. Im getting user input from stdin. here's what Im using right now.... function read_input() { $fp=fopen("/dev/stdin", "r"); $input=fgets($fp, 255); fclose($fp); return str_replace("\n", "", $input); } now, my problem is fgets() outputs whatever you typed. What Im looking for is a way to suppress that output. Thanks anyway... : ) Richard ----- Original Message ----- From: "Chris Hayes" <chayes@antenna.nl> To: "Richard Rojas" <richard@makati.techsquare.com>; <php-general@lists.php.net> Sent: Wednesday, April 30, 2003 5:58 PM Subject: Re: [PHP] password: mypassword --> ********* <input type="password" name="pass" size="14" maxlength="20"> (the type is the important one but since you are workin on it anyway i added some more) PS not a PHP question.... At 11:51 30-4-03, you wrote:
Hi All, Does anybody know how to do this? Im trying to make a simple command line login using PHP. Something like this.... login: username password: mypassword ---> My problem is that I cant suppress "mypassword" from being outputted on the screen. Is there a way to output *********, instead of "mypassword"? Or even a blank, or anything except the real password? Please help me, Im already losing all my nails with this... : ( Thanks, Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#145750) next »