Posted by Lars Eighner on 01/04/08 16:23
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 <http://larseighner.com/> usenet@larseighner.com
Countdown: 382 days to go.
Navigation:
[Reply to this message]
|