26 Jan
2006
26 Jan
'06
21:15
Hallo *, weiß jemand, wie ich mit PHP ein Passwort von der Tastatur aus in einen String einlesen kann, ohne dass man es auf dem Bildschirm sieht? Das Einlesen mache ich bisher so: --- snip --- function readline( $prompt="" ) { print( $prompt ); $out = ""; $key = ""; $key = fgetc( STDIN ); while( $key != "\n" ) { $out .= $key; $key = fread(STDIN, 1); } return $out; } $password = readline( "DB password: " ); --- snap --- Viele Grüße Bastian ____________ Virus checked by G DATA AntiVirusKit Version: AVK 16.5107 from 26.01.2006 Virus news: www.antiviruslab.com