How to get the computer name from ip Address?

心不动则不痛 提交于 2019-12-24 23:20:48

问题


How to get the computer name from IP Address using php.

Concept :

How to restrict the user with using the system information.,i don't want the IP Address with that restriction.,because it doesn't use for me.,the IP Address are not static everyday it'll changed so i want a system name or something system related.,my basic idea is i want to restrict the user with the access of only one system.,not some other.,(1 user - 1 system) with his/her login details...so this is the concept for my project...


回答1:


gethostbyaddr($TheIpAddress);

will do the trick. http://php.net/gethostbyaddr



来源:https://stackoverflow.com/questions/6248204/how-to-get-the-computer-name-from-ip-address

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!