Re: $_SERVER['PHP_AUTH_USER'] does not return value

From: Date: Fri, 02 May 2003 16:15:30 +0000
Subject: Re: $_SERVER['PHP_AUTH_USER'] does not return value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146149@lists.php.net to get a copy of this message
On Fri, 2 May 2003, P Lok wrote: > The $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] do not get/return > value when I try the HTTP authentication example from php manual.Anyone can > tell me what pre-requisite(setting) is require in PHP.ini?I am using > PHP4.3.1 and apache 2.0.45 on Win2000.HTTP Authentication example on Chapter [snip] Two questions: a) Is safe_mode turned on? Check phpinfo(). b) Are you also using an external authentication, like with .htaccess? Under these conditions the PHP_AUTH_* variables will not be available but REMOTE_USER will still be available. Regards, Philip

« previous php.general (#146149) next »