以下面的文件为例:
如何做到访问  localhost/index.php + 119.147.15.17 (或者其它IP)返回查询数据?
而不是写死在文件中。index.php
<?php      $ip   =   "119.147.15.17";
      exec("ping $ip -n 2",$arr,$nu);
      print("<xmp>");
      print_r($arr);
      echo $nu;
    die();
?>