First, let\'s get the security considerations out of the way. I\'m using simple authentication under Apache for a one-off, internal use only, non-internet connected LAN, PHP web
I think that you are after this
$username = $_SERVER['PHP_AUTH_USER']; $password = $_SERVER['PHP_AUTH_PW'];