Username from htaccess

Is there a way, on a UNIX box running Apache, to get the username from .htaccess of the user that is currently logged on?  I tried $ENV{'REMOTE_USER'}, this doesn't work.  Any thoughts?
dmercerAsked:
Who is Participating?
 
shchukaConnect With a Mentor Commented:
In order for $ENV{'REMOTE_USER'} to work, the program, which has this code must itself be in the password-protected area.  I suggest you look at the Apache FAQ - this is one of the questions there.

See
http://www.apache.org/docs/misc/FAQ.html#remote-user-var
0
 
dmercerAuthor Commented:
Thanks... I had just remembered that as soon as I sent out the question... Thanks again...
0
All Courses

From novice to tech pro — start learning today.