4Jul/093
How to get client MAC address in PHP
<?php
exec('arp '.$_SERVER['REMOTE_ADDR'],$user_mac);
echo substr($user_mac[1],strpos($user_mac[1],':')-2, '17');
?>
Note : this technique only works on local area networks with linux based server and its impossible to get mac address in php over internet


July 21st, 2009 - 15:15
this will work only on a local network.
February 3rd, 2011 - 07:02
i’m got errr with ubuntu.. Notice: Undefined index: 1 in /… with cakephp framework ..
February 13th, 2011 - 12:08
check the output of “var_dump($user_mac); “