find page visitor's computer (machine) name

Discussion in 'PHP' started by tarzan.1234, Apr 21, 2010.

  1. #1
    h,
    i'm looking for code for findng visitor's machine name .
    i already try this $host = GetHostByName($_SERVER['REMOTE_ADDR']);
    but returns the client ip address not the computer name.
    thanks all in advancd ....
     
    tarzan.1234, Apr 21, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PTR is gethostbyaddr($_SERVER['REMOTE_ADDR']);

    Machinename is not happening ever
     
    krsix, Apr 21, 2010 IP
  3. tarzan.1234

    tarzan.1234 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can Get The server name when the user opening the page so when that is possible i'm sure there is a way to get client username ...
    any one else have any idia ???
     
    tarzan.1234, Apr 22, 2010 IP
  4. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #4
    No you can't. Server name and Client machine name are two different things.
     
    stephan2307, Apr 22, 2010 IP
  5. tarzan.1234

    tarzan.1234 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ther is no possibility of geting the machine user account also
     
    tarzan.1234, Apr 22, 2010 IP
  6. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #6
    No. The only way would be using some kind of virus/trojan or browser exploit. But as this method is illegal it is not really an option.
     
    stephan2307, Apr 22, 2010 IP
  7. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #7
    Can't be done with PHP, can probably do it with a Java app although that will obviously require the user's permission to download. If you do a print_r($_SERVER) you'll get the information available via the server global.
     
    mfscripts, Apr 22, 2010 IP