The username should be in the environment variable REMOTE_USER.
Rather than play around with CGI.pm and other things, for these situations I use a test script that prints out the complete environment. Look at the lowest level that you can. :)
#!/usr/bin/perl print "Content-type: text/plain\n\n"; foreach my $key ( sort keys %ENV ) { printf "%-25s %s\n", $key, $ENV{$key}; }
In reply to Re: CGI getting htaccess userid
by brian_d_foy
in thread CGI getting htaccess userid
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |