Location: PHPKode > scripts > adv_net > adv_net/index.php
<?

include 'adv_net.php';

// Sample for ping 
$query=new adv_net;
$query->ip='127.0.0.1';
$query->cmd_debug='0';				// fill "1" to get debug data

$query->ping();				// Sample for IP ping

$query->ip2mac();				// Sample for IP to MAC converter

$query->rdns();				// rDNS -  IP to name resolve

//$query->ip_hostname='google.com';
//$query->dns();				// DNS - hostname to IP resolve, require ip_hostname

//$query->lan_discovery(24);			// discovery hosts in network, use 32 for one host, 24 for C subnet

$query->cmd_extra=" -n ";			// disable DNS during scan port - faster
$query->port_discovery();			// scan ip for open ports

print_r ($query);
Return current item: adv_net