Re: IP to country DB and script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- tedd <tedd@xxxxxxxxxxxx> wrote:
Hey,

> At 11:01 AM -0700 5/21/06, Ryan A wrote:
> >  > As always in life, your choices are quick,
> good, and
> >>  inexpensive --
> >>  but you can only pick two. :-)
> >
> >Hey! Thats a good one, am going to use it in other
> >places :-)
> >  Thanks!
> 
> No problem -- I met with a client yesterday where I
> told him that. He 
> thought it a good quote as well, but let's see if he
> hires me. :-)

Best of luck, I hope you get it.



> 
> That routine doesn't reference a dB-- it simply
> uses:
> 
> $location = get_location_xml( get_remote_ip() );
> $city = parse_city( $location );
> $country = parse_country( $location );


Interesting....

 
> I have seen some pretty accurate reporting systems,
> but I fear that 
> they have to be kept current on a daily basis.

I guess so too, some companies are charging 199 for
the database (ip->country and city) and $280 for 1
year of updates.

The (free) package i downloaded references the DB and
so far its been pretty accurate (only ip-> country
though), i also checked it with some known proxies
(Korea, Japan, China and the US) and its been spot on
so far.

I can send it to you if you want, I had to tweak the
script a bit due to inconsistant variable names and
globals being off on my machine but it works great
now. Feel free to reply to me if you want it. Its just
under 3mb with the country csv file.

Cheers!

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux