Net_GeoIP::lookupOrg()
Net_GeoIP::lookupOrg() -- returns the name of the organization or ISP for the given IP address.
require_once "Net/GeoIP.php";
string lookupOrg() (string $addr)
Description
This method returns the name of the organization or of the ISP which has registered the IP address range that contains the specified IP address. It works only with a non-free Organization/ISP
database.
Example 48-1. Looking up organization name
require_once "Net/GeoIP.php";
$geoip = Net_GeoIP::getInstance("/path/to/geoipdb.dat");
try {
echo $geoip->lookupOrg($_SERVER['REMOTE_ADDR']);
} catch (Exception $e) {
// Handle exception
}
Throws
This method throws an exception if the IP address is invalid or the database type is wrong.
Text Ads
There isn't content right now for this block.
Community Login
People Online:
Visitors:
29
Members:
1
Total:
30
Online Now: 01 :
Monty