command line evidence prompt php
i'm minute management line apparatus assistance web app. needs evidence bond service. i'd book arrangement evidence prompt i don't have pass management line argument.
that's easy enough, nonetheless i'd relate evidence shade it's typed. i php?
bonus points doing pristine php (no system('stty')
) replacing characters *
.
edit:
the book run unix component (linux mac). book combined php, many approaching stay that.
also, record, stty
proceed doing is:
echo "password: ";
system('stty -echo');
$password = trim(fgets(stdin));
system('stty echo');
// supplement new line given users cr didn't echo
echo "\n";
i'd move have system()
calls there.
Comments
Post a Comment