Jump to content

Get Current User Name


RemusRigo

Recommended Posts

Hi all,

 

I want to use a script that greets the user, or something like it. I tryed to use getenv('USERNAME'), but if i put it on my web page returns a empty string (http://rigo.ro/docs/test.php), if I acces the page from the localhost it returns the name of my pc.

 

Is there any way that I can get the name of a user logged on a windows OS?

(any script is ok php/javascript....)

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/156435-get-current-user-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.