Is it really not possible to write a php cli password prompt that hides the password in windows?
问题 I have spent several hours trying to find a means of writing a cross platform password prompt in php that hides the password that is input by the user. While this is easily accomplished in Unix environments through the use of stty -echo, I have tried various means of passthru() and system() calls to make windows do the same thing to no avail. I have tried: passthru('set /p pass=Password: '); system('echo %pass% > out.txt'); $pass = file_get_contents('out.txt', 'r'); This seems to hang on the