Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, i've a secured directory. How can you determine the username in PHP? Reno
Post Follow-up to this messageReno 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
Post Follow-up to this messageWith 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.
Post Follow-up to this messageReno 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
Post Follow-up to this messageWith 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.
Post Follow-up to this messageOn 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
Post Follow-up to this messageOn 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.