Reply to Re: Getting username

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация