Re: geolocation
| From: | Schiz0 | Date: | Tue, 02 Sep 2008 13:08:50 +0000 |
| Subject: | Re: geolocation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279269@lists.php.net to get a copy of this message | ||
On Tue, Sep 2, 2008 at 9:05 AM, clive <clive_lists@immigrationunit.com> wrote:
> Hi,
>
> Have any developed a site that determines a users location based on IP
> address, Im not looking for accurate locations, just what country they are
> coming from.
>
> I know I could possible get a list of IP blocks allocated to countries or
> make use of some web server to get the information, I just want to know how
> others are doing this?
>
> If are using a specific method and know it to be robust and up to date
> please let me know.
>
> Thanks
>
> clive
>
>
I use the GeoIP libraries. They work perfectly. YOu just need to
install the pecl-GeoIP package, then make sure you keep the binary
database up-to-date (from www.maxmind.com).
http://php.net/geoip