#20461 [Com]: Unable to access $PHP_AUTH_USER or $PHP_AUTH_PW

From: Date: Mon, 18 Nov 2002 04:45:43 +0000
Subject: #20461 [Com]: Unable to access $PHP_AUTH_USER or $PHP_AUTH_PW
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25153@lists.php.net to get a copy of this message
 ID:               20461
 Comment by:       shawn@boldar.com
 Reported By:      shawn@boldar.com
 Status:           Open
 Bug Type:         Apache related
 Operating System: Linux 2.4.8
 PHP Version:      4CVS-2002-11-17
 New Comment:

forgot to answer your other question.. using apache 1.3.20 -- been
wanting to upgrade to 2.0 but have had a whole different set of
problems w/ that, so taking things one step at a time...


Previous Comments:
------------------------------------------------------------------------

[2002-11-17 22:43:25] shawn@boldar.com

tried using $_SERVER already, no dice.

i meant using the mod_auth module in apache to protect certain
directories.. when those directories are accessed, the browser pops up
a window for the user to enter in their username/password for that
resource...

------------------------------------------------------------------------

[2002-11-17 22:23:00] sniper@php.net

I can not reproduce this, it works fine here.
Try accessing the variables through $_SERVER variable:

$_SERVER['PHP_AUTH_USER']
$_SERVER['PHP_AUTH_PW']

And what Apache version are you using?
What do you mean with "regular http authentication through apache" ??


------------------------------------------------------------------------

[2002-11-17 22:09:27] shawn@boldar.com

not using any external auth... simply using regular http authentication
through apache... certain directories on the webserver are protected,
and so it pops up the box asking the user for username/password.. and
then rather then ask them AGAIN for a login for some of my web-based
apps, i simply pass the http auth info (via $PHP_AUTH_USER and
$PHP_AUTH_PW) along to these apps.  the only problem is, those 2
variables don't seem to exist anymore for me.  nothing has changed in
my configuration except for the fact that i'm now using the cvs version
of php as opposed to 4.2.3 (if you read in my original bug report it
explains why).

------------------------------------------------------------------------

[2002-11-17 20:13:05] sniper@php.net

Are you using some external auth mechanism?


------------------------------------------------------------------------

[2002-11-17 17:57:28] shawn@boldar.com

register_globals is on.. i know the default changed, but it's still
using the same php.ini file i've had for a while now.  i double-checked
phpinfo() to be sure.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20461

-- 
Edit this bug report at http://bugs.php.net/?id=20461&edit=1



Thread (10 messages)

« previous php.bugs (#25153) next »