![]() | |||||||
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: I hope somebody finds it helpful. ASGSOFT |
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). |
Im finding this doesnt work on my web server but only on my localhost server so MasterB is correct. PJ |
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...) |
How exactly does this script help? Where can we use it? |
If it told a username.. it makes the person more easy to hack... |
| All times are GMT -7. The time now is 04:21 AM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0