How do I pass an Apache username into a PHP script?
Thanks
If you are using .htaccess and .htpasswd simply use $_SEVER[PHP_AUTH_USER] or $PHP_AUTH_USER depending on you php.ini settings and php version.