Re: [PHP] get current username from the windows system

2003-01-23 Thread 1LT John W. Holmes
$_SERVER['LOGON_USER'] also works. ---John Holmes... - Original Message - From: "James Lobley" <[EMAIL PROTECTED]> To: "'Thomas Franz'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 23, 2003 6:05 AM Subje

RE: [PHP] get current username from the windows system

2003-01-23 Thread James Lobley
Hi Thomas, The following code should help you... Note that you have to turn off anonymous access in IIS, so that the user authenticates to a domain. "); $user_chunks = explode("\\",strtoupper(getenv("REMOTE_USER"))); $user_domain = $user_chunks[0]; $user_name = $user_chunks[1]; echo("User domai

Re: [PHP] get current username from the windows system

2003-01-23 Thread Justin French
So, you want the server (PHP) to probe the client (user's) remote machine to find out the windows username? Can't be done. First thing to remember is that PHP is server side. SOME LIMITED information is sent to the server by the browser, but I doubt this would ever be considered -- or even secur