Tutorial :How to get user os name in php?


If user logged onto machine with his domain name and password, how to get his user name on the server side?


The user's client has to report the username to you. Without things like a browser-plugin, that adds the username to each http request, i can't think of an easy way to do this.


I assume you're talking of windows domain. Google for PHP NTLM


Without any extra software (commonly referred to as single sign-on), providing an authentication token somehow, this is not possible.

Or are you asking how to get the username of the system user running the server application?

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »