Re: get current username from the windows system
| From: | Justin French | Date: | Thu, 23 Jan 2003 11:12:17 +0000 |
| Subject: | Re: get current username from the windows system | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132786@lists.php.net to get a copy of this message | ||
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 secure.
Second thing to remember is that not every user will be on a windows
machine.
Some things can be achieved by client side scripts like javascript, but I
honestly doubt you could do this, not would it be secure for the user.
Justin
on 23/01/03 9:43 PM, Thomas Franz (thomas.franz@esv-siershahn.de) wrote:
> Hi.
>
> is their a possibilty to get the windows username of the current logged on
> user with php.
>
> I want this to make a logon dialog more comfortable.
>
> Thanks for an answer and a little example if it's possible.
>
> Thomas
>
>
>