首页 > 开发 > PHP > 正文

PHP取得电脑网卡地址

2024-05-04 22:58:40
字体:
来源:转载
供稿:网友

<?php

@exec("ipconfig /all",$array);

for($tmpa;$tmpa<count($array);$tmpa++){

    if(eregi("physical",$array[$tmpa])){

        $getstr=explode(":",$array[$tmpa]);

        echo $getstr[1];

    }

}

?>


,欢迎访问网页设计爱好者web开发。
上一篇:PHP 文件的分割

下一篇:PHP 加水印

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表