Location: PHPKode > projects > Network Asset Management Archive > nama/scan.php
<?PHP
include ('tcpPortScanner.inc');

  $tcpScanner = new tcpPortScanner("$REMOTE_ADDR");
   $ports = $tcpScanner-> doScan();
   if (count($ports) == 0) {
       echo "no open tcp ports detected.<br/>";
   } else {
       echo "open tcp ports:<br/>";
       foreach ($ports as $portNumber => $service) {
           echo "$portNumber ($service)<br/>";
       }
   }
?>

Return current item: Network Asset Management Archive