Re: Geo IP Location help needed...
| From: | DealTek | Date: | Tue, 25 Oct 2011 01:36:07 +0000 |
| Subject: | Re: Geo IP Location help needed... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315407@lists.php.net to get a copy of this message | ||
On Oct 24, 2011, at 6:23 PM, Bastien wrote:
>
> On 2011-10-24, at 9:07 PM, DealTek <dealtek@gmail.com> wrote:
>
>
> 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
Thanks Bastien,
simple code on my part - so no debug stuff...
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$this = geoip_country_name_by_name($ip);
echo 'The country you are in is : '.$this;
?>
The tester with the error was a friend on his home dsl and also on his smartphone (so no IP spoofing
from him)...
but maybe the db is old from - Geo IP Location? hmmm . how do I check?
the link does not provide any contact info...
http://us3.php.net/manual/en/book.geoip.php
--
Thanks,
Dave - DealTek
dealtek@gmail.com
[db-11]