Re: $_SERVER['PHP_AUTH_USER'] has gone
| From: | Nathan Rixham | Date: | Sun, 04 Apr 2010 19:48:12 +0000 |
| Subject: | Re: $_SERVER['PHP_AUTH_USER'] has gone | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303815@lists.php.net to get a copy of this message | ||
Satz Klauer wrote:
> Hi,
>
> I'm running a system with Fedora 12 and Apache/PHP default installation.
> That means PHP is used as module in Apache, it is NOT running as CGI.
>
> Nevertheless for the latest PHP version installed there
> $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] and
> $_SERVER['REMOTE_USER'] do no longer work, they are empty and I get a
> warning that they do not exist. It looks for me like a big incompatible
> change from one version of PHP to an other (which is a mess).
>
> So how can I get them back? Or what is the intended way to access the HTTP
> Basic Auth username and password?
>
just a quick sanity check; you do have the specific site/directory set
up to send and receive basic auth yeah? sounds very much to me like this
is an apache config issue and not php :)
regards!