Re: [PHP] ip-to-country
From my experience, I have had reported one incorrect country-level IP from Maxmind's paid service (returned US vrs Canada for a Canadian IP). But their free version is based on the commercial lists, just not updated as often, or automatically (you download and store locally on your server). So should be nearly as accurate as long as you maintain the lists (ie. think is weekly, being 2-weeks behind). That said, someone on another list is running a geo-location service comparison test, where you click links to the various services, then enter the location they returned. He was compiling the results, and so far has reported the following: -QUOTE--- So far some crazy numbers and realities. Of these numbers, all of the vendors missed 25 exact city locations equally. So our continued plan is to measure how far off the approx. 25% are so we can then say, OK, x vendor is 100% accurate up to x% and then x% accurate within say x-y miles. The shocking thing to us is still how some of the more expensive providers will say their definition of accuracy on a city level can be within 25 miles. Thus you would receive statistical confidence of a 90-100 for an IP that shows Pasadena, Calif. and yet in reality be located in Long Beach, Calif., or the same for San Jose, Ca. and yet be further up the peninsula in San Carlos, Ca. total: 103 ip2: 55 quova: 46 ipiligence: 32 whatis: 62 maxmind: 63 By the way, we are obviously way short still on queries so if you haven't clicked on the link, please do so and follow some ez pz instructions: http://www.stratosanalytics.com/iplookup.html -END QUOTE--- So help him out by clicking the link (although not sure what he means by e-zed-p-zed instructions ;-{)] ) George On 14-Dec-09, at 5:07 AM, Angelo Zanetti wrote: -Original Message- From: George Langley [mailto:george.lang...@shaw.ca] Sent: 19 October 2009 01:38 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country On 18-Oct-09, at 1:03 PM, SED wrote: How can I access an index for IP to a country (or a more detailed location)? http://www.maxmind.com/app/ip-location has both free and various paid services. George Hi George, How accurate are the free ones compared to the paid ones? Regards Angelo http://www.elemental.co.za http://www.wapit.co.za
Re: [PHP] ip-to-country
easy-peasy :) I have nothing to add to the discussion, my experience is only with Maxmind's free database, and it is definitely not accurate at Israel. On Tue, Dec 29, 2009 at 11:14 PM, George Langley george.lang...@shaw.cawrote: From my experience, I have had reported one incorrect country-level IP from Maxmind's paid service (returned US vrs Canada for a Canadian IP). But their free version is based on the commercial lists, just not updated as often, or automatically (you download and store locally on your server). So should be nearly as accurate as long as you maintain the lists (ie. think is weekly, being 2-weeks behind). That said, someone on another list is running a geo-location service comparison test, where you click links to the various services, then enter the location they returned. He was compiling the results, and so far has reported the following: -QUOTE--- So far some crazy numbers and realities. Of these numbers, all of the vendors missed 25 exact city locations equally. So our continued plan is to measure how far off the approx. 25% are so we can then say, OK, x vendor is 100% accurate up to x% and then x% accurate within say x-y miles. The shocking thing to us is still how some of the more expensive providers will say their definition of accuracy on a city level can be within 25 miles. Thus you would receive statistical confidence of a 90-100 for an IP that shows Pasadena, Calif. and yet in reality be located in Long Beach, Calif., or the same for San Jose, Ca. and yet be further up the peninsula in San Carlos, Ca. total: 103 ip2: 55 quova: 46 ipiligence: 32 whatis: 62 maxmind: 63 By the way, we are obviously way short still on queries so if you haven't clicked on the link, please do so and follow some ez pz instructions: http://www.stratosanalytics.com/iplookup.html -END QUOTE--- So help him out by clicking the link (although not sure what he means by e-zed-p-zed instructions ;-{)] ) George On 14-Dec-09, at 5:07 AM, Angelo Zanetti wrote: -Original Message- From: George Langley [mailto:george.lang...@shaw.ca] Sent: 19 October 2009 01:38 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country On 18-Oct-09, at 1:03 PM, SED wrote: How can I access an index for IP to a country (or a more detailed location)? http://www.maxmind.com/app/ip-location has both free and various paid services. George Hi George, How accurate are the free ones compared to the paid ones? Regards Angelo http://www.elemental.co.za http://www.wapit.co.za
RE: [PHP] ip-to-country
-Original Message- From: John Black [mailto:s...@network-technologies.org] Sent: 19 October 2009 11:03 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country SED wrote: How can I access an index for IP to a country (or a more detailed location)? I have not yet found a function for that in PHP nor a free to use website that offers a remote search. http://www.hostip.info/ is free, provides a database to download and even allows you to query the database via GET. Downside is that it is not very accurate but it is GPL so it is improved by user and visitors of the site. The most accurate database I have seen so far is the paid database from maxmind.com -- John Thanks for the link John! Angelo http://www.elemental.co.za http://www.wapit.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ip-to-country
SED wrote: How can I access an index for IP to a country (or a more detailed location)? I have not yet found a function for that in PHP nor a free to use website that offers a remote search. http://www.hostip.info/ is free, provides a database to download and even allows you to query the database via GET. Downside is that it is not very accurate but it is GPL so it is improved by user and visitors of the site. The most accurate database I have seen so far is the paid database from maxmind.com -- John Define: Ubuntard = The drivel this guy spews is inane and forgettable stuff, characterized by comments that treat Ubuntu as if it is the only distribution in existence. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ip-to-country
You might find this useful: http://sites.google.com/site/interrupt0x13h/code/ip2c On Sun, Oct 18, 2009 at 4:03 PM, SED s...@sed.is wrote: Hi, How can I access an index for IP to a country (or a more detailed location)? I have not yet found a function for that in PHP nor a free to use website that offers a remote search. Perhaps, there is another solution - any ideas? Regards, Summi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ip-to-country
http://pecl.php.net/package/geoip however i tried a few IPs once and it was unknowns On Sun, Oct 18, 2009 at 12:03 PM, SED s...@sed.is wrote: Hi, How can I access an index for IP to a country (or a more detailed location)? I have not yet found a function for that in PHP nor a free to use website that offers a remote search. Perhaps, there is another solution - any ideas? Regards, Summi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ip-to-country
SED wrote: Hi, How can I access an index for IP to a country (or a more detailed location)? I have not yet found a function for that in PHP nor a free to use website that offers a remote search. Perhaps, there is another solution - any ideas? DNS lookup - see http://countries.nerd.dk /Per -- Per Jessen, Zürich (4.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ip-to-country
On 18-Oct-09, at 1:03 PM, SED wrote: How can I access an index for IP to a country (or a more detailed location)? http://www.maxmind.com/app/ip-location has both free and various paid services. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IP to country DB and script
snip Can anybody recommend a IP to country (or better still IP-city) database and script? /snip Ryan, I've used Tracewatch (a web stats package) on a couple of sites, and it comes with a CSV of IP to Country conversions I believe. URL: www.tracewatch.com HTH, Kev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IP to country DB and script
snip URL: www.tracewatch.com /snip Seems like their data is sourced from here: http://ip-to-country.webhosting.info/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] IP to country DB and script
Thanks Kevin, Will look into it, I think I found the same link via the SEs...am not sure though. Cheers! Ryan --- Kevin Davies [EMAIL PROTECTED] wrote: snip URL: www.tracewatch.com /snip Seems like their data is sourced from here: http://ip-to-country.webhosting.info/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - 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
Re: [PHP] IP to country DB and script
At 4:59 AM -0700 5/21/06, Ryan A wrote: Hey, Can anybody recommend a IP to country (or better still IP-city) database and script? I have found some leads via google but would like to know what you guys are using or can recommend. Or just the DB would do, I can write the script if I have to. Thanks! Ryan Ryan: You might want to review: http://www.weberdev.com/get_example-3091.html I also have: http://xn--ovg.com/location If you want that, please let me know and I'll provide. From reported tests, it appears to be correct most of the time. hth's tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IP to country DB and script
Hey Tedd, Ryan: You might want to review: http://www.weberdev.com/get_example-3091.html Thanks for the link. I also have: http://xn--ovg.com/location If you want that, please let me know and I'll provide. As usual, most generious, thanks for the offer. I'm still testing 3 that I found, if they dont go well will take you up on your offer. I have found quite a few ip- country scripts/DBs (one extra with help from Kevin from the list) but unable to find any ip-city that is not commercial...the only one everyone seems to be promoting is ip2location which is $199 Any idea of a free one? If no, will continue with the ip-country instead of city. Thanks! Ryan -- - 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
Re: [PHP] IP to country DB and script
At 10:43 AM -0700 5/21/06, Ryan A wrote: Hey Tedd, Ryan: You might want to review: http://www.weberdev.com/get_example-3091.html Thanks for the link. I also have: http://xn--ovg.com/location If you want that, please let me know and I'll provide. As usual, most generious, thanks for the offer. I'm still testing 3 that I found, if they dont go well will take you up on your offer. I have found quite a few ip- country scripts/DBs (one extra with help from Kevin from the list) but unable to find any ip-city that is not commercial...the only one everyone seems to be promoting is ip2location which is $199 Any idea of a free one? If no, will continue with the ip-country instead of city. Thanks! Ryan Ryan: As always in life, your choices are quick, good, and inexpensive -- but you can only pick two. :-) In any event, if you find a free one better than what I provided, please share. tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IP to country DB and script
Hey Tedd, 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! In any event, if you find a free one better than what I provided, please share. Will do, the problem is, when I visited that page it tells me: Your location: city (unknown) Country: EU and gives me an option to identify myself below... I did, so it will help you expand your db, but I cant want to ask the visitors to my clients site to do the same, it has to show them their correct country a high percentage of the time. After submitting my location details I went back there and refreshed the page but it still shows me the same old data Cheers! Ryan -- - 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
Re: [PHP] IP to country DB and script
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. :-) In any event, if you find a free one better than what I provided, please share. Will do, the problem is, when I visited that page it tells me: Your location: city (unknown) Country: EU 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 ); No big deal -- just something I found interesting. and gives me an option to identify myself below... I did, so it will help you expand your db, but I cant want to ask the visitors to my clients site to do the same, it has to show them their correct country a high percentage of the time. After submitting my location details I went back there and refreshed the page but it still shows me the same old data Yep, but you're expecting more from me than what I deserve. I could collect the data and build my own dB -- that sounds reasonable. But, my test here was simply to see how valid those calls were. I have no idea if the people who are submitting data to me are telling the truth or not. As such, it would be problematic to build a reliable dB from the few visitors I receive. Plus, things change. Sometimes I access my site and it shows my correct location of Lansing, MI, then other times is shows Jackson, MI, and today it's showing Unknown, CA. So, even if I were being honest, what would I report? I have seen some pretty accurate reporting systems, but I fear that they have to be kept current on a daily basis. tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IP to country DB and script
--- tedd [EMAIL PROTECTED] 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
Re: [PHP] ip to country
--- Enda Nagle [EMAIL PROTECTED] wrote: I had a quick look at http://www.iptocountry.com but was wondering if there was a way of doing this with PHP functions? My favorite is GeoIP Country from Maxmind: http://www.maxmind.com/ They have an open source PHP API that is easy to use, and it's free. This is what MySQL AB uses for their Web sites and what many other open source sites use. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php