getting the username variable and putting it in txtbox?

getting the username variable and putting it in txtbox?

am 04.01.2008 15:39:37 von paul814

Is it possible using PHP to get the value of the current user logged
in to the computer and then put that into a textbox?

Say I log into my computer as smith

I then want smith (or whoever) is logged into my windows PC to be
echo'ed into a textbox.

Can something like this be done?...How would you go about doing it?

thanks.

Re: getting the username variable and putting it in txtbox?

am 04.01.2008 16:20:37 von Toby A Inkster

paul814 wrote:

> Say I log into my computer as smith
>
> I then want smith (or whoever) is logged into my windows PC to be
> echo'ed into a textbox.
>
> Can something like this be done?...How would you go about doing it?

Yes, but only if you're running an ident server on your computer.

Ident servers allow other hosts on the Internet when you connect to them
to query back to your computer to find out who is connecting to them. Of
course, they are a major privacy (and some would argue security) issue,
which is why virtually nobody runs them.

If this is for a company intranet, you could solve this by requiring all
workstations to have an ident server installed. So long as access to them
from the internet at large is blocked by a firewall, it shouldn't present
much of a privacy/security problem.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 5 days, 2:29.]

Sharing Music with Apple iTunes
http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/

Re: getting the username variable and putting it in txtbox?

am 04.01.2008 17:23:58 von Lars Eighner

In our last episode,
<200b088c-b423-4872-b843-a8aea0742805@5g2000hsg.googlegroups.com>, the
lovely and talented paul814@excite.com broadcast on comp.lang.php:

> Is it possible using PHP to get the value of the current user logged
> in to the computer and then put that into a textbox?

> Say I log into my computer as smith

> I then want smith (or whoever) is logged into my windows PC to be
> echo'ed into a textbox.

> Can something like this be done?...How would you go about doing it?

php -r 'echo $_ENV[USER];'

--
Lars Eighner usenet@larseighner.com
Countdown: 382 days to go.

Re: getting the username variable and putting it in txtbox?

am 04.01.2008 19:23:32 von Jerry Stuckle

Lars Eighner wrote:
> In our last episode,
> <200b088c-b423-4872-b843-a8aea0742805@5g2000hsg.googlegroups.com>, the
> lovely and talented paul814@excite.com broadcast on comp.lang.php:
>
>> Is it possible using PHP to get the value of the current user logged
>> in to the computer and then put that into a textbox?
>
>> Say I log into my computer as smith
>
>> I then want smith (or whoever) is logged into my windows PC to be
>> echo'ed into a textbox.
>
>> Can something like this be done?...How would you go about doing it?
>
> php -r 'echo $_ENV[USER];'
>

That gives the user on the server - not on the client.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================