It was working on my localhost. But not working on my server. What's is wrong? How to get mac address from windows system using php?
$MAC = exec('getmac');
$MAC = strok($MAC, ' ');
echo $MAC;
It was working on my localhost. But not working on my server. What's is wrong? How to get mac address from windows system using php?
$MAC = exec('getmac');
$MAC = strok($MAC, ' ');
echo $MAC;
You'll not be able to get client's MAC address using php, not even using javascript, if user is using windows and user allows you to install an ActiveX control.
http://www.eggheadcafe.com/community/aspnet/3/10054371/how-to-get-client-mac-address.aspx
http://codingresource.blogspot.com/2010/02/get-client-mac-address-ip-address-using.html
Or you can try following
cho GetMAC();
function GetMAC(){
ob_start();
system('getmac');
$Content = ob_get_contents();
ob_clean();
return substr($Content, strpos($Content,'\\')-20, 17);
}