Answers for "javascript get system mac address"

0

javascript get system mac address

<?php
  
// PHP code to get the MAC address of Client
$MAC = exec('getmac');
  
// Storing 'getmac' value in $MAC
$MAC = strtok($MAC, ' ');
  
// Updating $MAC value using strtok function, 
// strtok is used to split the string into tokens
// split character of strtok is defined as a space
// because getmac returns transport name after
// MAC address   
echo "MAC address of client is: $MAC";
?>
Posted by: Guest on October-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language