mariraj on 09/08/11
Last Edited at 09/08/11 10:56pm
exec("ipconfig /all", $output);foreach($output as $line){if (preg_match("/(.*)Physical Address(.*)/", $line)){$mac = $line;$mac = str_replace("Physical Address. . . . . . . . . :","",$mac);}}echo trim($mac);
Report this snippet Tweet
Comment:
You need to login to post a comment.