View Single Post
Old 03-04-2006, 01:33 PM   · #1
asgsoft
NamePros Regular
 
asgsoft's Avatar
 
Location: At Home
Trader Rating: (36)
Join Date: Sep 2005
Posts: 810
NP$: 985.10 (Donate)
asgsoft is just really niceasgsoft is just really niceasgsoft is just really niceasgsoft is just really niceasgsoft is just really nice
Current user's machine name

While looking in the PHP predefined variables i found an intersting one: $_ENV["COMPUTERNAME"]. what this does is it gives the current username of the person viewing your site. This is quite good if you are making a poll for a intranet where each user has their own username.

Have a look at this and tell me what you think.

PHP Code:
<?php
$username
= $_ENV["COMPUTERNAME"]; //set variable

echo $username; //show the value of the variable

?>

I hope somebody finds it helpful.

ASGSOFT


Please register or log-in into NamePros to hide ads
asgsoft is offline   Reply With Quote
Site Sponsors
EscrowDNS NameChatter http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 10:31 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.