Re: Geo IP Location help needed...
| From: | Bastien | Date: | Tue, 25 Oct 2011 01:23:28 +0000 |
| Subject: | Re: Geo IP Location help needed... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315406@lists.php.net to get a copy of this message | ||
On 2011-10-24, at 9:07 PM, DealTek <dealtek@gmail.com> wrote:
> newbie question!
>
> Hi all,
>
> So, I had - Geo IP Location - installed for me on my VPS server by a network tech
>
> http://us3.php.net/manual/en/book.geoip.php
>
>
> then I used:
>
> geoip_country_name_by_name(xxx) to display the country by name
>
> basically works ok - however a few people say that my page:
>
> 1- will display their remote ip with $_SERVER['REMOTE_ADDR'];
>
> 2- ! but for some - the country name is blank.... ! (defeats the whole purpose)
>
> - I am not sure how: Geo IP Location actually works...
>
> Q: Am I correct in assuming that when a country name does NOT show - is it because that
> particular IP is NOT seen by Geo IP Location?
>
> We just installed the latest version (I think) yesterday....
>
> Is it reading from some old outdated database - or ????
>
>
>
> Q: Is there some code that can ALWAYS tell the country name of the IP?
>
>
>
>
> --
> Thanks,
> Dave - DealTek
> dealtek@gmail.com
> [db-11]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Dave,
If the IP is showing, could there be some left over debug in some function?
If the IP is not in your list it could be anything from a new range for a region to IP spoofing or
some anonymizer or even an old DB
Bastien Koert
905-904-0334