PHP obtains the computer's unique identifier [CPU, Nic MAC address] to obtain the computer's CPU information functionOnlyU () {$ a; $ barray (); if (function_exists (exec )) {if (mailto :! @ Exec (all, $ B) {returnfalse ;}} elseif (fu PHP obtains the unique identifier of the computer [CPU, Nic MAC address]
// Function OnlyU () {$ a = ''; $ B = array (); if (function_exists ('exec ') {if (mailto :! @ Exec (/all ", $ B) {return false ;}} elseif (function_exists ('system') {ob_start (); if (mailto :! @ System (/all ") {return false;} else {} $ B = ob_get_contents (); ob_end_clean (); $ B = explode (" \ n ", $ B); // print_r ($ B); array_pop ($ B);} else {return false;} $ all = sizeof ($ B ); for ($ I = 0; $ I <$ all; $ I ++) {if (strpos ($ B [$ I], "Description ")! = False) {if (strpos ($ B [$ I + 1], "Physical Address ")! = False) {$ c = explode (":", $ B [$ I + 1]); $ a = trim ($ c [1]); break ;}}// End for return empty ($ )? False: $ a;} // End function OnlyU // Obtain the Nic MAC address function getMAC () {@ exec ("ipconfig/all", $ array ); for ($ Tmpa; $ Tmpa <count ($ array); $ Tmpa ++) {if (eregi ("Physical", $ array [$ Tmpa]) {$ mac = explode (":", $ array [$ Tmpa]); return $ mac [1] ;}}