IP to geo-location advice

IP to geo-location advice

am 15.07.2009 14:14:27 von optomatic

Hi Everyone

Could anyone give me some advice on the best way to do IP to
geo-location with php using open source code?

Thanks in advance-Patrick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: IP to geo-location advice

am 15.07.2009 14:36:28 von Daniel Brown

On Wed, Jul 15, 2009 at 08:14, Patrick wrote:
>
> Could anyone give me some advice on the best way to do IP to
> geo-location with php using open source code?

Advice: RTFM. ;-P

http://php.net/geoip

--

daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: IP to geo-location advice

am 15.07.2009 15:11:54 von pan

Patrick wrote:
>> Hi Everyone
>>
>> Could anyone give me some advice on the best way to do IP to
>> geo-location with php using open source code?
>>
>> Thanks in advance-Patrick


That is not an easy problem.

You can go to ARIN, APNIC, etc and get /8 and smaller assignments.
But, if the new assignee hasn't SWIP'd their blocks, the world
will think the old assignment is still true. Recently a block was
assigned to a US company and their customers couldn't access
hulu.com because there hadn't been a SWIP. hulu denied access
because the block is still in the whois records as non-US.

The big geolocation companies make a lot of mistakes.
Because - they will not use a fine enough granularity to sort
out where an ip connection is coming from. They'll usually stop
at the last router within a large transit provider's block.
For example: many local ISPs in northern california will
all appear to be in stockton, etc. where some tier 1 routers are.

For dynamic ip ranges it is even messier.

For now, ip geolocation is very fuzzy. Much better to go by
zip code or postal code. At least when zip areas are merged
or changed you might get sufficient advance notice.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: IP to geo-location advice

am 15.07.2009 15:33:31 von Per Jessen

Patrick wrote:

> Hi Everyone
>=20
> Could anyone give me some advice on the best way to do IP to
> geo-location with php using open source code?
>=20

Use DNS and http://countries.nerd.dk.=20


/Per

--=20
Per Jessen, Zürich (24.2°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: IP to geo-location advice

am 19.07.2009 07:18:55 von Manuel Lemos

Viva,

on 07/15/2009 09:14 AM Patrick said the following:
> Could anyone give me some advice on the best way to do IP to
> geo-location with php using open source code?

You may want to look here for several solution for that purpose:

http://www.phpclasses.org/browse/class/39/top/rated.html

--

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php