Re: Geographical tendancies with RemoteHost
| From: | Jochem Maas | Date: | Sun, 23 Jan 2005 13:38:07 +0000 |
| Subject: | Re: Geographical tendancies with RemoteHost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207076@lists.php.net to get a copy of this message | ||
John Taylor-Johnston wrote:
With my counter, I track RemoteHost and IPAddress and save it in a mysql table. One of my colleagues asked me these questions (below). I can track number of hits per month. Is there any OS code anywhere that I might implement to see geographical tendencies? Johnphp.net (can) redirect requests to the 'nearest' mirror based on your IP. to find out how they do this you might start by reading this source file: http://www.php.net/source.php?url=/include/ip-to-country.inc hint: they use data from http://www.ip-to-country.com/ hope that give you an idea, good luckIs it possible to track this as a statistical graph that gives us average hits per month over a longer period? This would be useful for further grant applications. Also of course if we could track hits per rough geographical regions (i.e. Quebec, Canada, North America, Latin America, Europe, Other). Is this doable without too much effort?