NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page Current user's machine name

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 03-04-2006, 01:33 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



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.
????: NamePros.com http://www.namepros.com/webmaster-tutorials/173490-current-users-machine-name.html

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

echo $username//show the value of the variable

?>
I hope somebody finds it helpful.

ASGSOFT
asgsoft is offline  
Old 03-11-2006, 11:52 AM   #2 (permalink)
Awesome™
 
MasterB's Avatar
Join Date: May 2005
Location: Boston
Posts: 77
MasterB is on a distinguished road
 



Actually, this displays the computer name of the computer which the server is on. Your computer name doesn't get transmitted through the headers (as far as I know).
MasterB is offline  
Old 03-11-2006, 01:35 PM   #3 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
Join Date: Aug 2004
Posts: 363
.PJ is on a distinguished road
 



Im finding this doesnt work on my web server but only on my localhost server so MasterB is correct.

PJ
__________________
L33TSig.net
.PJ is offline  
Old 03-18-2006, 01:29 PM   #4 (permalink)
NamePros Regular
Join Date: Oct 2005
Posts: 205
2knew has a spectacular aura about2knew has a spectacular aura about
 



Try this:

echo gethostbyaddr($_SERVER['REMOTE_ADDR'])."<br/>\n";

It'll give what is essentially your point of access to the internet through your ISP, but not your actual machine name. I do not believe your true host name is ever routed (unless perhaps you have a direct connection to the internet like some edu workstations...)
2knew is offline  
Old 03-23-2006, 09:19 PM   #5 (permalink)
Senior Member
 
bbalegere's Avatar
Join Date: Jul 2005
Location: Bangalore
Posts: 1,270
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
 



How exactly does this script help?
Where can we use it?
bbalegere is offline  
Old 04-01-2006, 02:19 PM   #6 (permalink)
Ray
CEO
 
Ray's Avatar
Join Date: Jun 2005
Location: Tennessee
Posts: 1,896
Ray has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud ofRay has much to be proud of
 



If it told a username.. it makes the person more easy to hack...
Ray is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free link from my site-Trying to get users No recip required Archangel For Sale / Advertising Board 2 09-05-2005 02:18 PM
GameScript Summer Sale – 25% off plus promotions for current customers- 2 weeks only! John D Scripts For Sale 11 08-04-2005 10:56 AM
Auctions Starting at 99˘ No Reserve Domainut Domains For Sale - Auctions 5 11-13-2003 01:00 PM
ATTENTION:Hotmail and MSN Messanger Users!!!! bobbi The Break Room 0 03-12-2003 11:12 PM

 
All times are GMT -7. The time now is 12:57 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger