Merc Studio Tech Blog
Monday, August 2, 2010
Some useful way to get ip and computer name via php
To get the user’s IP use the following script:
phpGetHostByName($REMOTE_ADDR);
To get the user’s computer name use the following script:
phpgethostbyaddr($_SERVER['REMOTE_ADDR']);
Sources:
http://lostwithin.net/how-to-get-users-ip-and-computer-name-using-php/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment