FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » recognize country
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: recognize country [message #184202 is a reply to message #184200] Sun, 15 December 2013 11:05 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
[Removed *non-existing* alt.php from the Newsgroups header field value]

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
> ?

Once you have learned to write an coherent question, one might be able to
help you.

Please also learn to quote. The attribution lines are relevant as a posting
replied to now can and will expire later.

> but isn't stable the ip of the nations?

No. First of all, nation and country are different subjects. A country can
have, and I daresay by now most countries do have, inhabitants from several
nations. There is also the increasingly likely possibility for a person to
have multiple nationalities.

Second, IP address ranges are allocated to *Regional* Internet Registries
(RIRs), which then allocate them for Local Internet Registries (LIRs). LIRs
include Internet service providers, enterprises, or academic institutions:

<https://en.wikipedia.org/wiki/IPv4#Allocation>
<https://en.wikipedia.org/wiki/IPv6_address#IPv6_address_space>

> 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

This cannot be correct because several address ranges within those ranges
are reserved for special use already:

<https://en.wikipedia.org/wiki/IPv4#Special-use_addresses>

> 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)?

No. Why do you want to determine the nation/country?


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Apache HTTP Server
Next Topic: activating a JS script from PHP redirect
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Jul 02 00:08:43 GMT 2024

Total time taken to generate the page: 0.05294 seconds