idris,
It's easy. First, you get the IP address of the visitor's computer by using the predefined variable $REMOTE_ADDR. Then, you get the visitor's computer name (if available) by using the function gethostbyaddr:
$comp_name = gethostbyaddr($REMOTE_ADDR);
In newer versions of PHP, you must use _SERVER["REMOTE_ADDR"] instead of just using $REMOTE_ADDR.
Erich
idris wrote:
How do I get the visitor's computer name?