Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12242

Re: recognize country

Message-ID <2197091.TGfsNCzbWx@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-12-15 12:05 +0100
Subject Re: recognize country
Newsgroups comp.lang.php
References <125kyzt66kwku$.q6ywosnout0r.dlg@40tude.net> <461fsbu98jld.1vftfxn0dl3dg.dlg@40tude.net> <l8irus$dsf$1@dont-email.me> <10m4kg1lqaghb$.1qos4ncc1tq11$.dlg@40tude.net>

Show all headers | View raw


[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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

recognize country nawfer <novalidsforspam@alt.al> - 2013-12-14 14:43 +0100
  Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 08:58 -0500
    Re: recognize country nawfer <novalidsforspam@alt.al> - 2013-12-15 11:16 +0100
      Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-15 08:37 -0500
  Re: recognize country The Natural Philosopher <tnp@invalid.invalid> - 2013-12-14 15:27 +0000
  Re: recognize country Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-12-14 10:32 -0500
  Re: recognize country Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-14 19:55 +0100
    Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 14:52 -0500
      Cross-Posting (was: recognize country) Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-14 21:57 +0100
        Re: Cross-Posting Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 16:20 -0500
          Re: Cross-Posting Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-14 23:25 +0100
            Re: Cross-Posting Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 17:36 -0500
        Re: Cross-Posting Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-14 22:38 +0100
          Re: Cross-Posting Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-14 23:31 +0100
            Re: Cross-Posting Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-14 23:55 +0100
              Re: Cross-Posting Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 18:08 -0500
                Re: Cross-Posting Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-15 00:35 +0100
                Re: Cross-Posting Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-15 01:13 +0100
  Re: recognize country richard <noreply@example.com> - 2013-12-14 18:56 -0500
    Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-14 19:09 -0500
      Re: recognize country nawfer <novalidsforspam@alt.al> - 2013-12-15 11:34 +0100
        Re: recognize country "J.O. Aho" <user@example.net> - 2013-12-15 11:59 +0100
        Re: recognize country Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-15 12:05 +0100
          Re: recognize country Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-12-15 12:51 +0000
          Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-15 08:49 -0500
        Re: recognize country Tim Streater <timstreater@greenbee.net> - 2013-12-15 13:13 +0000
        Re: recognize country Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-15 08:50 -0500
        Re: recognize country Arno Welzel <usenet@arnowelzel.de> - 2013-12-15 15:22 +0100
        Re: recognize country The Natural Philosopher <tnp@invalid.invalid> - 2013-12-15 15:35 +0000
    Re: recognize country Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-12-14 21:35 -0800
    Re: recognize country Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-12-15 12:42 +0000
    Re: recognize country Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-15 15:21 +0000

csiph-web