title: Get the Username of the Client machine in PHP
body: <p>I have a web page in PHP which need to start an GUI application in windows 7. Both the application to be started and the apache service runs in the same machine. Apache runs a service started by administrator. Now my machine has LDAP authentication, where many users will login into the machine, open the web page. The web page will start the GUI application by using SCHTASKS, so the application starts as a local user who currently logged in. Now I want to store the user who started the application, i.e the current user who logged in using PHP. I used getenv('username'), 'whoami' everything is giving administrator because Apache is executed by administrator. Is there any way to get the name of the user who logged in using PHP ? Thanks in Advance.</p>