function GeoIP_record_by_addr in GeoIP API 7
Same name and namespace in other branches
- 6 lib/geoipcity.inc \GeoIP_record_by_addr()
File
- lib/
geoipcity.inc, line 209
Code
function GeoIP_record_by_addr($gi, $addr) {
if ($addr == NULL) {
return 0;
}
$ipnum = ip2long($addr);
return _get_record($gi, $ipnum);
}