For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2005 > username .htaccess









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author username .htaccess
Reno

2005-04-14, 3:55 pm

Hello,

i've a secured directory. How can you determine the username in PHP?


Reno


James Pittman

2005-04-14, 3:55 pm

Reno wrote:

> i've a secured directory. How can you determine the username in PHP?
>

I believe it's one of the environment variables. Do a var_dump($_SERVER) .

Jamie
Library Curator

2005-04-17, 3:57 am

With Apache, the name of an authenticated user is stored in an
enviroment variable which you can get with PHP. I want to say it is
REMOTE_USER but I could be wrong.

James Pittman

2005-04-17, 8:56 am

Reno wrote:

> i've a secured directory. How can you determine the username in PHP?
>

I believe it's one of the environment variables. Do a var_dump($_SERVER) .

Jamie
Library Curator

2005-04-23, 3:56 am

With Apache, the name of an authenticated user is stored in an
enviroment variable which you can get with PHP. I want to say it is
REMOTE_USER but I could be wrong.

Bender Rodriguez

2005-04-23, 3:55 pm

On Thu, 14 Apr 2005 17:57:10 +0300, Reno <InSeCo@news.news> wrote:

> Hello,
>
> i've a secured directory. How can you determine the username in PHP?
>
>
> Reno
>
>


Maybe this will help

http://www.php.net/features.http-auth


--
"Two things are infinite: the universe and human stupidity; and I'm not
sure about the first one." - Albert Einstein
Bender Rodriguez

2005-04-25, 3:56 pm

On Thu, 14 Apr 2005 17:57:10 +0300, Reno <InSeCo@news.news> wrote:

> Hello,
>
> i've a secured directory. How can you determine the username in PHP?
>
>
> Reno
>
>


Maybe this will help

http://www.php.net/features.http-auth


--
"Two things are infinite: the universe and human stupidity; and I'm not
sure about the first one." - Albert Einstein
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com