Re: Detecting Usernames

From: Date: Wed, 12 Jun 2002 17:34:33 +0000
Subject: Re: Detecting Usernames
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101777@lists.php.net to get a copy of this message
On Wed, 12 Jun 2002, Carl Whittaker wrote: > Ive asked this question in another group with no luck so maybe you guys have > an answer. > > Im looking for a way to detect the clients Win2k network username, im > using Apache2 PHP4.2.1 on a Win2K network with a domain, ive tried > REMOTE_USER and that just prints a hyphen. This whole issue has been > bugging me for a while now ive searched high and low im sure its > possible because a lot of people have said it is. Run this amazing program: <pre><? var_dump($_SERVER) ?></pre> If you see your network username as one of the listed subscripts of $_SERVER, presto, you're in business. Otherwise I suspect you may be out of luck because the browser is not sending it to the server, or the server is not sending it to PHP. miguel

« previous php.general (#101777) next »