Geo IP class.
| category | OSS |
|---|---|
| package | OSS_GeoIP |
| copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
| license | New BSD License |
getCountryCode(string $ip) : string
Error codes: 10 - GeoIP is not installed 11 - Country database is not available 12 - Unknown / empty result. RFC1918?
stringThe IP to look up
stringThe two letter country code (or error code)getTimezone(string $ip, string $default) : string
stringThe IP to look up
stringThe default timezone to use on error
stringThe timezone (e.g. 'Europe/Dublin')