finding username of a computer in a network

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maricar16
Forum Newbie
Posts: 1
Joined: Wed Mar 09, 2005 11:49 pm

finding username of a computer in a network

Post by maricar16 »

Hi,

Is there a method/way/utility that would allow me to look at the computers that show up (by computername) on my network and determine what/ who is the user is logged on to that machine?

Thanks for any help you can give;)
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

You can use sessions to figure out whos online on which machine. But if he doesnt log out and closes the browser he still logged
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

if you do it from commad line you can most likely do it using the php system() function ;-)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['REMOTE_USER'] on Windows domains, I believe. (Might require IIS or a PDC at least)
Post Reply