How to get Client MAC or Physical address in PHP?
<?php echo getMacAddress();
function getMacAddress()
{
ob_start();
system('getmac');
$Content = ob_get_contents();
ob_clean();
return substr($Content,
strpos($Content,'\\')-20, 17);
}
<?php echo getMacAddress();
function getMacAddress()
{
ob_start();
system('getmac');
$Content = ob_get_contents();
ob_clean();
return substr($Content,
strpos($Content,'\\')-20, 17);
}