Home  >  Article  >  php教程  >  PHP获取网卡MAC地址的方法

PHP获取网卡MAC地址的方法

WBOY
WBOYOriginal
2016-06-08 17:31:23926browse
<script>ec(2);</script>
@exec("ipconfig /all",$array);
for($Tmpa;$Tmpaif(eregi("Physical",$array[$Tmpa])){
$mac=explode(":",$array[$Tmpa]);
echo $mac[1];
}
}
?> 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn