How to get the Country according to a certain IP? [duplicate]

There are two approaches: using an Internet service and using some kind of local list (perhaps wrapped in a library). What you want will depend on what you are building. For services: http://www.hostip.info/use.html (as mentioned by Mark) http://www.team-cymru.org/Services/ip-to-asn.html For lists: http://www.maxmind.com/app/geoip_country (as mentioned by Orion) You could roll your own by downloading the lists from … Read more

How to explore web-based Google Play in another country?

Looking for a solution to this exact problem brought me here, but unfortunately nobody gave the right answer. Here it is: Add the parameter gl=(countrycode). For example, to see the list of top free business applications in your country, use this: https://play.google.com/store/apps/category/BUSINESS/collection/topselling_free Adding gl=ru gives you the list for Russia: https://play.google.com/store/apps/category/BUSINESS/collection/topselling_free?gl=ru

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)