pluf/src/GeoIP.php File Reference


Classes

class  GeoIP

Enumerations

enum  GEOIP_COUNTRY_BEGIN
enum  GEOIP_STATE_BEGIN_REV0
enum  GEOIP_STATE_BEGIN_REV1
enum  GEOIP_STANDARD
enum  GEOIP_MEMORY_CACHE
enum  GEOIP_SHARED_MEMORY
enum  STRUCTURE_INFO_MAX_SIZE
enum  DATABASE_INFO_MAX_SIZE
enum  GEOIP_COUNTRY_EDITION
enum  GEOIP_PROXY_EDITION
enum  GEOIP_ASNUM_EDITION
enum  GEOIP_NETSPEED_EDITION
enum  GEOIP_REGION_EDITION_REV0
enum  GEOIP_REGION_EDITION_REV1
enum  GEOIP_CITY_EDITION_REV0
enum  GEOIP_CITY_EDITION_REV1
enum  GEOIP_ORG_EDITION
enum  GEOIP_ISP_EDITION
enum  SEGMENT_RECORD_LENGTH
enum  STANDARD_RECORD_LENGTH
enum  ORG_RECORD_LENGTH
enum  MAX_RECORD_LENGTH
enum  MAX_ORG_RECORD_LENGTH
enum  GEOIP_SHM_KEY
enum  US_OFFSET
enum  CANADA_OFFSET
enum  WORLD_OFFSET
enum  FIPS_RANGE
enum  GEOIP_UNKNOWN_SPEED
enum  GEOIP_DIALUP_SPEED
enum  GEOIP_CABLEDSL_SPEED
enum  GEOIP_CORPORATE_SPEED

Functions

 GeoIP_load_shared_mem ($file)
 _setup_segments ($gi)
 GeoIP_open ($filename, $flags)
 GeoIP_close ($gi)
 GeoIP_country_id_by_name ($gi, $name)
 GeoIP_country_code_by_name ($gi, $name)
 GeoIP_country_name_by_name ($gi, $name)
 GeoIP_country_id_by_addr ($gi, $addr)
 GeoIP_country_code_by_addr ($gi, $addr)
 GeoIP_country_name_by_addr ($gi, $addr)
 _GeoIP_seek_country ($gi, $ipnum)
 _get_org ($gi, $ipnum)
 GeoIP_org_by_addr ($gi, $addr)
 _get_region ($gi, $ipnum)
 GeoIP_region_by_addr ($gi, $addr)
 GeoIP_getdnsattributes ($l, $ip)
 GeoIP_countryOfRequest ($request, $geoipdb)

Enumeration Type Documentation

enum FIPS_RANGE

geoip.inc

Copyright (C) 2007 MaxMind LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Modified by Loic d'Anterroches to have the function names with the right case GeoIP instead of geoip.

Added GeoIP_countryOfRequest function. Using single quotes instead of double.

Downloaded 2007-11-26.

enum US_OFFSET


Function Documentation

_GeoIP_seek_country ( gi,
ipnum 
)

_get_org ( gi,
ipnum 
)

_get_region ( gi,
ipnum 
)

_setup_segments ( gi  ) 

GeoIP_close ( gi  ) 

GeoIP_country_code_by_addr ( gi,
addr 
)

GeoIP_country_code_by_name ( gi,
name 
)

GeoIP_country_id_by_addr ( gi,
addr 
)

GeoIP_country_id_by_name ( gi,
name 
)

GeoIP_country_name_by_addr ( gi,
addr 
)

GeoIP_country_name_by_name ( gi,
name 
)

GeoIP_countryOfRequest ( request,
geoipdb 
)

Return the 2 character code of the country given the request object.

Parameters:
Pluf_HTTP_Request 
string Path to the GeoIP database
Returns:
string 2 character ISO code

GeoIP_getdnsattributes ( l,
ip 
)

GeoIP_load_shared_mem ( file  ) 

GeoIP_open ( filename,
flags 
)

GeoIP_org_by_addr ( gi,
addr 
)

GeoIP_region_by_addr ( gi,
addr 
)


Generated on Wed Feb 3 15:44:51 2010 for Pluf by  doxygen