FireDog69 has asked for the wisdom of the Perl Monks concerning the following question:
I am very relatively new to the PERL language. So please bear with me. I am creating a site which requires a login via .htaccess. I am trying to figure out how to read the ENV(“$REMOTE_USER”) variable to use the user name within the site.
Here is a small simple piece of script that I have tried which prints nothing at all.
What is wrong?
Thanx,
FireDog69
Here is a small simple piece of script that I have tried which prints nothing at all.
-------------------------------------------------------- #!c:/www/perl/bin/perl.exe #-- This Displays errors to browser --# BEGIN { $|=1; print "Content-type: text/html\n\n"; use CGI::Carp('fatalsToBrowser'); } $user = $ENV{"REMOTE_USER"}; print "<p>$user</p>"; --------------------------------------------------------
What is wrong?
Thanx,
FireDog69
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting REMOTE_USER from .htaccess
by cLive ;-) (Prior) on Jun 05, 2002 at 06:30 UTC | |
Re: Getting REMOTE_USER from .htaccess
by schumi (Hermit) on Jun 05, 2002 at 09:23 UTC | |
Re: Getting REMOTE_USER from .htaccess
by Juerd (Abbot) on Jun 05, 2002 at 07:49 UTC | |
by Beatnik (Parson) on Jun 05, 2002 at 08:22 UTC | |
by MeowChow (Vicar) on Jun 05, 2002 at 08:51 UTC |
Back to
Seekers of Perl Wisdom