in reply to Re: A way to get the User in a variable from htpasswd?
in thread A way to get the User in a variable from htpasswd?
use CGI; my $cgi = CGI->new(); my $username = $cgi->remote_user();
Update: From CGI.pm:
Heh, not a lot of difference in practice. But, hey, encouraging more people to use CGI is a good thing, right?sub remote_user { return $ENV{'REMOTE_USER'}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A way to get the User in a variable from htpasswd?
by mpolo (Chaplain) on May 10, 2001 at 22:12 UTC | |
by tye (Sage) on May 11, 2001 at 02:05 UTC |