Location: PHPKode > projects > Network Asset Management Archive > nama/iaso/locatenameforip.php
<?php
$now = date("m/j/y h:i:s",time());
$IP_ADDRESS= $_POST["IP_ADDRESS"];
print '<body bgcolor="#FFFFCC">';
echo "<BR>";
      $netbios_name="";
      $mydata = "";
      exec("/usr/bin/machinename " . $IP_ADDRESS, $netbios_name);
      if (strlen($netbios_name[0])!=0) {
        $mydata = trim($netbios_name[0]);
      echo $IP_ADDRESS . "--->"  . $mydata . "<BR>";
} else {echo $IP_ADDRESS . " not found";}
?>

Return current item: Network Asset Management Archive