Posted by Bob on 09/20/06 20:23
Jerry Stuckle wrote:
> Are you trying this from a protected directory? What happens if you put
> a file containing
>
> <?php
> phpinfo();
> ?>
>
> (only) in a protected directory? Do you see the authorized user there?
>
> Also, what web server are you using?
>
> It should show up in both $_SERVER['PHP_AUTH_USER'] (the best to use)
> and $_SERVER['REMOTE_USER'] (which may or may not be authorized).
Hi Jerry - Yes, I'm in a protected directory - OS is Apache. phpinfo()
showed me that the username appears in:
$_SERVER["REMOTE_USER"]
but not in $_SERVER['REMOTE_USER']
Thank your very much for your help.
Navigation:
[Reply to this message]
|