Getting user's computer name
Moderator: General Moderators
Getting user's computer name
Is it possible to get visitor's computer's name? Some body said they can but...
-
sunderwind
- Forum Newbie
- Posts: 9
- Joined: Thu Aug 29, 2002 4:24 am
- Location: Irving, TX
- Contact:
- gite_ashish
- Forum Contributor
- Posts: 118
- Joined: Sat Aug 31, 2002 11:38 am
- Location: India
hi,
gethostbyaddr() uses Name Server for IP to Host name resolution.
It might fail while working in LAN/computer without any name server entries.
Also depends upon the name server configuration of the machine on which php engine is running.
But anyway even if the gethostbyaddr() fails it returns ip address (input as it is).
sunderwind, its a nice trick to get the user's computer name...
thanks.
regards,
gethostbyaddr() uses Name Server for IP to Host name resolution.
It might fail while working in LAN/computer without any name server entries.
Also depends upon the name server configuration of the machine on which php engine is running.
But anyway even if the gethostbyaddr() fails it returns ip address (input as it is).
sunderwind, its a nice trick to get the user's computer name...
thanks.
regards,
PHP, when used as a web server side language, can only access what the users' browser reports to the web server. If you cannot locate the information in $_SERVER (for example) then chances are you won't be able to get the users' computer name.
This may be completely different when using PHP w WIndows and IIS, especially in a LAN environment. You will need to do some testing though.
This may be completely different when using PHP w WIndows and IIS, especially in a LAN environment. You will need to do some testing though.
-
sunderwind
- Forum Newbie
- Posts: 9
- Joined: Thu Aug 29, 2002 4:24 am
- Location: Irving, TX
- Contact: