How to get .htpasswd username & password with PHP? April 1, 2013Uncategorizedhtpasswd, password, php, PHP_AUTH_PW, PHP_AUTH_USER, usernamePF Simple! Username is stored in $_SERVER[‘PHP_AUTH_USER’] and password in $_SERVER[‘PHP_AUTH_PW’]