html - How to get currently logged on windows username in PHP without windows authentication -


how current logged windows username php without windows authentication?

i have tried below functions before, display server's username

<?php  echo getenv("homedrive") . getenv("homepath");  echo 'current script owner: ' . get_current_user();  echo getenv("username");   echo    $_server['logon_user'];      echo $_server['auth_user'];     echo $_server['redirect_logon_user'];     echo $_server['redirect_auth_user'];  ?> 


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -