用php得到网卡mac--来自phpx.com

来源:互联网 发布:软件测试培训班 编辑:程序博客网 时间:2024/05/29 11:29


$command
= escapeshellcmd("nbtstat -A " . $_SERVER["REMOTE_ADDR"]);

if (
strtolower(substr(PHP_OS, 0, 3)) == "win")

{

    
exec($command, $result);

    
array_pop($result);

    print
substr(array_pop($result), 18);

}

else

{

    print
"THE OS IS NOT WINDOWS 2000";

}

?>