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:

No comments: