可以用 php 执行 操作系统命令,来达到目的。例如:$return_array = '';exec("ipconfig /all", $return_array); 如果获取远程服务器的,可以通过调用 远程服务器上的接口。