Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php,alt.php Subject: Re: recognize country Date: Sun, 15 Dec 2013 11:59:08 +0100 Lines: 43 Message-ID: References: <125kyzt66kwku$.q6ywosnout0r.dlg@40tude.net> <461fsbu98jld.1vftfxn0dl3dg.dlg@40tude.net> <10m4kg1lqaghb$.1qos4ncc1tq11$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net pPUK/5/OGuJR+FFL2epUggPWiuZ2kD0uNL/sXYdaNLh/R6+EBn Cancel-Lock: sha1:+fw5ai8OAyE8iyAoKNSchwxP3Xw= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <10m4kg1lqaghb$.1qos4ncc1tq11$.dlg@40tude.net> Xref: csiph.com comp.lang.php:12241 On 15/12/13 11:34, nawfer wrote: >>> GeoIP. >> >> Which is just as accurate as any other IP-based location service. IOW, >> not very. > > but is a online service or one php array or both > ? > > > but isn't stable the ip of the nations? > example > 50.xxx.xxx.xxx to 100.xxx.xxx.xxx all ip nation A > 101.xxx.xxx.xxx to 150.xxx.xxx.xxx all ip nation B > 151.xxx.xxx.xxx to 200.xxx.xxx.xxx all ip nation C > > ok the ip inner nations ip can't be accurate and can to change, but between > nation is table (every range is assigned at only one nation)? > There are IP-numbers which is registred for say Sweden and users in Denmark will be using those IP-numbers, which makes it look like the Dane comes from Sweden and you your case you would server them something in Swedish which ain't Danish. This applies for Hi3G users, sure you could adjust and tell that those IP-numbers should get things in Danish, but then the Swedish users will get it in Danish too. There are quite many such ranges and some companies lets other companies to use part of their range to thir party which may not come from the same country. GeoIP does have quite okey lists, but only if you are paying for it, the free lists has loads of known issues. Sadly you didn't answer Jerrys question, why do you want to do this, detect the users country? -- //Aho