Home  >  Article  >  Backend Development  >  PHP code to obtain network card address_PHP tutorial

PHP code to obtain network card address_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:52:32691browse

Copy code The code is as follows:

@exec("ipconfig /all",$array); 
for($Tmpa;$Tmpa if(eregi("Physical",$array[$Tmpa])){ 
 $getstr=explode(": ",$array[$Tmpa]); "
" echo $getstr[1]; "
" } "



http://www.bkjia.com/PHPjc/318900.html
www.bkjia.com

truehttp: //www.bkjia.com/PHPjc/318900.htmlTechArticleCopy the code as follows: ?php @exec("ipconfig/all",$array); for($Tmpa ;$Tmpacount($array);$Tmpa++){ if(eregi("Physical",$array[$Tmpa])){ $getstr=explode(":",$array[$Tmpa]); echo$g. ..
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