Get the client's computer name

后端 未结 8 1279
轮回少年
轮回少年 2020-12-20 23:47

I am getting the client\'s (website user\'s) IP address. Now I\'d like to go one step further by knowing the user\'s computer name. So far, my research has not turned up any

8条回答
  •  攒了一身酷
    2020-12-21 00:29

    This is all that you could get using just PHP (you may try these butIi dont think this is what you actually needed):

    gethostname()
    gethostbyname(gethostname())
    $_SERVER['HTTP_HOST']
    $_SERVER['SERVER_SIGNATURE']
    $_SERVER['SERVER_NAME']
    $_SERVER['SERVER_ADDR']
    $_SERVER['SERVER_PORT']
    $_SERVER['REMOTE_ADDR']
    gethostbyaddr($_SERVER['REMOTE_ADDR'])
    php_uname()
    

提交回复
热议问题