Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get windows user log in

Status
Not open for further replies.

delfy

MIS
Feb 8, 2005
96
0
0
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?
 
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.

---------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top