Posted by Jerry Stuckle on 01/04/08 18:23
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
==================
Navigation:
[Reply to this message]
|