Re: HTTP_AUTHORIZATION problem

From: Date: Wed, 10 Oct 2001 14:40:04 +0000
Subject: Re: HTTP_AUTHORIZATION problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70673@lists.php.net to get a copy of this message
your trying to get the username/passwd ? if you have register globals on, just use. echo "$HTTP_AUTH_USER:$HTTP_AUTH_PASS "; -- Chris Lee lee@mediawaveonline.com "Ninety-Nine Ways To Die" <ninetyninewaystodie@lycos.com> wrote in message news:PPDMFNFNJHDAGBAA@mailcity.com... > Running Apache 1.3.12, and php cvs, running into trouble with http_auth, I use > > $a = getenv(HTTP_AUTHORIZATION); > > and try to echo it back via: > > echo "$a"; > > and I get nothing, yet when I use: > > foreach(getallheaders() AS $key => $value) echo > "<b><u>$key</u>:</b> $value <br>\n"; > > I get it back just fine as: > > Authorization: Basic r@nD0mcH@raCt3r5 > > Any reason why this would be, I am kind of new to extracting HTTP_Vars as I never really had a use for it until now. I need to extract it via the getenv.. Thanks... > > > > > Make a difference, help support the relief efforts in the U.S. > http://clubs.lycos.com/live/events/september11.asp

« previous php.general (#70673) next »