This program only returns the client machine name in localhost only
echo gethostbyaddr($_SERVER[\'REMOTE_ADDR\']);
If it is run from an online s
What's this "other information"? An IP address?
In PHP, you use $_SERVER['REMOTE_ADDR'] to get the IP address of the remote client, then you can use gethostbyaddr() to try and conver that IP into a hostname - but not all IPs have a reverse mapping configured.
$_SERVER['REMOTE_ADDR']