Re: WinNT Logons as a $var

From: Date: Wed, 11 Apr 2001 17:37:16 +0000
Subject: Re: WinNT Logons as a $var
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6642@lists.php.net to get a copy of this message
"Paul Wieland" <Paul.Wieland@us.atlascopco.com> wrote in message news:OFA8BE88AF.3128835D-ON85256A2B.003FE66D@atlascopco.net... > I'm using PHP to build our companies Intranet. I am able to setup > permissions to certain areas of the website by specifiying permissions to > the corresponding folders. In some areas, I need to keep track of who makes > what changes where. In order to do this, the person needs to login. > Ideally, it would be best to just use their NT logon. > It would be extrememly helpful to me if I could get a users NT Logon as a > variable in php [maybe as an environment variable?]. I read something > somewhere about REMOTE_USER in asp [gag]. Is it possible to get the logon > with PHP? > > Thanks in advance. > -Paul Wieland you need to trace server side variables such as $REMOTE_ADDR which brings up the IP address of the connector and REMOTE_HOST which stores the computer name, there are others like $AUTH_USER and $LOGIN_USER but i haven't tried the last two as i don't run NT I hope this helps Darren

« previous php.windows (#6642) next »