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?
string
The IP to look up
string
The two letter country code (or error code)getTimezone(string $ip, string $default) : string
string
The IP to look up
string
The default timezone to use on error
string
The timezone (e.g. 'Europe/Dublin')