function GeoIP_record_by_addr in GeoIP API 6
Same name and namespace in other branches
- 7 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);
}