Jan 27, 2006 #1 delfy MIS Joined Feb 8, 2005 Messages 96 Location JM using php how can i get the usename and the log on time of the curently signed in windows user on a windows PC?
using php how can i get the usename and the log on time of the curently signed in windows user on a windows PC?
Jan 27, 2006 #2 thenewa2x Programmer Joined Dec 10, 2002 Messages 349 Location US I don't know if there is a real way of doing it but you might try: Code: $user = trim(`echo %USERNAME%`); I tested it and it works. --------------------------------------- http://www.visualactive.net/ Upvote 0 Downvote
I don't know if there is a real way of doing it but you might try: Code: $user = trim(`echo %USERNAME%`); I tested it and it works. --------------------------------------- http://www.visualactive.net/