Net_GeoIP::lookupLocation()

Net_GeoIP::lookupLocation() --  returns the location record for specified IP address

Synopsis

require_once "Net/GeoIP.php";

object lookupLocation() (string $addr)

Description

This method returns an instance of Net_GeoIP_Location for the specified IP address. It works only with a non-free City database.

Parameter

Throws

This method throws an exception if the IP address is invalid.