function geoip_close in GeoIP API 7
Same name and namespace in other branches
- 6 lib/geoip.inc \geoip_close()
2 calls to geoip_close()
- geoip_city in ./
geoip.module - API function to return the city data for a given IP. Defaults to using the current user's IP if not specified. This function only works with the city level database and will return false in all other cases.
- geoip_country_code in ./
geoip.module - API function to return the country code for a given IP. Defaults to using the current user's IP if not specified. This function works with both the country and city level databases.
File
- lib/
geoip.inc, line 354
Code
function geoip_close($gi) {
if ($gi->flags & GEOIP_SHARED_MEMORY) {
return true;
}
return fclose($gi->filehandle);
}