3
I’ve already searched the Stackoverflow En and PT, google and only found things like getenv(), $_SERVER['user'],shell_exec() or anything that returns me data from the Web server, nothing from the logged user on the system.
Another solution, nothing viable, was to use the ActiveX, that would only work in IE, no chance.
The solution until the moment I found was to create a Webservice in . Net, which only returns me the local user, nothing very difficult, but annoying to have q use another app besides the default in php, on another server.
As for the name of the machine, I already have the ip local via $_SERVER, but I need the name of the local machine even running Dig with shell_exec doesn’t happen.
So, of the 2 questions, search the user(ad) by PHP I imagine that I have not really left, but what about fetching the name of the local machine?
You want to get the client machine name on the server side?
– Woss
N understood.. the application runs on the server.
– Luiz Pillon