Posted by Jerry Stuckle on 09/20/06 21:50
Bob wrote:
> 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['PHP_AUTH_USER']
>
>
> Thank your very much for your help.
>
Strange - it should be in both. How are you doing the authentication?
Just .htaccess/.htpasswd or something else?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|