473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

getting country stats

My client wants to see stats which tell him the number of hits he's getting
from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before.
Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?

thanks
-dg
Jul 16 '05 #1
3 1880
"dan glenn" <da********@yahoo.com> wrote in message news:<ji*********************@newssvr13.news.prodi gy.com>...
My client wants to see stats which tell him the number of hits he's getting
from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before.
Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?


http://ip-to-country.directi.com/
Jul 16 '05 #2
"dan glenn" <da********@yahoo.com> skrev i en meddelelse
news:ji*********************@newssvr13.news.prodig y.com...
My client wants to see stats which tell him the number of hits he's getting from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before. Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?

How about using this (also used by php.net):
http://ip-to-country.directi.com/

An alternative would be to do reverse lookup on the ip's and use the tld,
but the first method is probably better since the latter would not always be
possible..
Martin
Jul 16 '05 #3
KAH
"Martin C. Petersen" <mc*@phys.au.dk> wrote in
news:3f***********************@dtext01.news.tele.d k:
An alternative would be to do reverse lookup on the ip's and use the
tld, but the first method is probably better since the latter would
not always be possible..


Would resolve to .net domains in most cases.

KAH
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wm | last post by:
This is very peculiar -- for some reason, I'm getting 6-8 results from each of these queries, although only one listing matches. I have a pair of forms on one page: <FORM> Search for lastname:...
15
by: middletree | last post by:
How do I request the actual page name that I'm on? This is going to go into an include file, and depending on which page I'm on, I'd like to do different things. I'm looking for "pagename.asp"
8
by: Mettá | last post by:
Hi I am trying to set page content to reflect where the user may come from. Is there a fairly simple way to tell where web page requests are coming from? (Site is on a Win2003 server) i.e....
1
by: Yama | last post by:
Hi, I am really confused. I have created a strong typed dataset for Northwind database Customer table. Now I am loading it with a stream of XML (ADO style) with the following: Customers _cust...
7
by: Lloyd Dupont | last post by:
from the IP of the request ?
4
by: marklawford | last post by:
Not having earned my DBA badge from the scouts just yet I'm a little lost with an error I'm getting. We've just upgraded our development database from 7.2 to 8.2 as the first step in upgrading...
1
by: tkpmep | last post by:
I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with the current version of SciPy), and had some teething troubles. I looked around for help and observed that the tutorial is dated...
4
by: jeff.maildump | last post by:
Hi, I've got multiple xmlhttprequests which are in a loop. So this is the loop I have so far, with the closure given to me in a previous post: ...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.