This program only returns the client machine name in localhost only
echo gethostbyaddr($_SERVER[\'REMOTE_ADDR\']);
If it is run from an online s
Try
echo getenv('COMPUTERNAME');
This will return your computername.