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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -