| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: At Home
Posts: 881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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: ASGSOFT
__________________ |
| |
| | #3 (permalink) |
| NamePros Regular Join Date: Aug 2004
Posts: 363
![]() | Im finding this doesnt work on my web server but only on my localhost server so MasterB is correct. PJ
__________________ L33TSig.net |
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Oct 2005
Posts: 205
![]() ![]() | 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...) |
| |
| | #6 (permalink) |
| CEO ![]() Join Date: Jun 2005 Location: Tennessee
Posts: 1,896
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If it told a username.. it makes the person more easy to hack...
__________________ GIFTARD.com | CSDATE.com | INVOLVEX.com | SYATCH.com |
| |
![]() |
| 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 |