This seems like a simple task, but I can't seem to find any way to do this.
I have a password-protected directory using Apache/.htaccess with a bunch of PHP files in it. I would like to be able to access the username/password info via PHP within those files. For example, I'd like to be able to print out "Hello <username>!". Is the username used by .htaccess stored in a global variable that PHP can get to, or am I just out of luck if I use this kind of authentication?
Thanks a lot,
Alex