Actually it retrieves the userid of the server instead of the client's.
----- Original Message ----- From: "Vail, Warren" <[EMAIL PROTECTED]> To: "'J Wynia'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 9:44 AM Subject: RE: [PHP-WIN] Re: How to Pass the Username which from Windows Log in > Does this retrieve the userid of the machine where the web server is > running, or does it retrieve the userid of the machine where the browser is > running? > > > Warren Vail > Tools, Metrics & Quality Processes > (415) 667-7814 > Pager (877) 774-9891 > 215 Fremont 02-658 > > > -----Original Message----- > From: J Wynia [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 8:38 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: How to Pass the Username which from Windows Login > > > $network = new COM("WScript.Network"); > $computername = $network->ComputerName; > $username = $network->UserName; > > Password can't be grabbed for fairly obvious reasons. > > "Jack" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Dear all > > I want to prevent user to make another login before they can browse the > > Intranet, so is there anyway that php can grep the username from the > windows > > Login or Domain Login? > > Which means if a user can login to the Windows NT, then he/she will have > the > > right to browse the Intranet! > > > > Thx a lot > > Jack > > [EMAIL PROTECTED] > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php