//获取电脑的cpu信息
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(,$b);//print_r($b);
array_pop($b);
}else{
return false;
}
$all = sizeof($b);
for($i = 0; $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($a)?false:$a;
} // end function onlyu
//获取网卡的mac的地址
function getmac() {
@exec(ipconfig /all,$array);
for($tmpa;$tmpa if(eregi(physical,$array[$tmpa])){
$mac=explode(:,$array[$tmpa]);
return $mac[1];
}
}
}
http://www.bkjia.com/phpjc/478809.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/478809.htmltecharticle//获取电脑的cpu信息 function onlyu(){ $a = ; $b = array(); if(function_exists(exec)){ if(mailto:!@exec( /all,$b)){ return false; } }elseif(function_exists(system)){ ob_star...