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
Post a Comment