[...]\r\n"); // Load the class and initialize require_once 'Ip2Country.php'; $ipc = new Ip2Country('../data/ip2country.dat'); // Lookup IP addresses foreach($argv as $ip) echo "Country for $ip is ", $ipc->lookup($ip), "\r\n";