You are here

function geoip_close in GeoIP API 6

Same name and namespace in other branches
  1. 7 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.
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);
}