By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,463 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,463 IT Pros & Developers. It's quick & easy.

getting the username variable and putting it in txtbox?

P: n/a
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.
Jan 4 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/1...tunes-sharing/
Jan 4 '08 #2

P: n/a
In our last episode,
<20**********************************@5g2000hsg.go oglegroups.com>, the
lovely and talented pa*****@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 <http://larseighner.com/us****@larseighner.com
Countdown: 382 days to go.
Jan 4 '08 #3

P: n/a
Lars Eighner wrote:
In our last episode,
<20**********************************@5g2000hsg.go oglegroups.com>, the
lovely and talented pa*****@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.
js*******@attglobal.net
==================

Jan 4 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.