Retrieve .htaccess login name from PHP
snippet in htaccess

Retrieve .htaccess login name from PHP

user2628

echo ($_SERVER['PHP_AUTH_USER']);