Hey all, I am trying to make one script which I can run on different computers and give me the hostname as well as the MAC address.
Can you please help me how to do so ?? Thanks..
read here:
http://forums.devarticles.com/general-programming-help-4/how-can-i-find-out-the-user-mac-address-1846.html
scrupul0us wrote:read here: http://forums.devarticles.com/general-programming-help-4/how-can-i-find-out-the-user-mac-address-1846.html
Hi, I tried out above like this, but it dint show anything... <?php $remoteIp = rtrim($_SERVER['REMOTE_ADDR']); $location = rtrim(arp -a $remoteIp); echo "thatsd : $location" ; print_r($remoteIp.$location); echo " Your hostname : " . GetHostByName($remoteIp); $mac =" ping $remoteIp && arp -a | grep $remoteIp"; echo "ITS MAC $mac "; ?> But it dint work...
arp -a $remoteIp