View Full Version : country & phone number

12-28-2003, 12:55 AM
i trying to make statistics in my site , i need to know some information about client

1- which country the client is there (the country he select it in time zone).

2-and the phone number he dialed if he dial up to connect to the internet.

3- his ip address

4- his reigon code

i don't know is it possible or it done by server side or client side

12-28-2003, 01:34 AM
To get this is possible with javascript, but to record the info you'd need a serverside language.

Numbers 2 and 4, I don't think you will be able to get. Not without installing some program on the users PC to transfer that info to you

Roy Sinclair
12-28-2003, 02:00 AM
Your web server software should be capable of creating log files which can contain all the information you can get about a client. The phone number the client used is not going to be a part of that information. You can get the user's time zone and IP address both of which can be used to get an idea of where the user's at. Tools like WebTrends http://www.netiq.com/webtrends/ can be used to mine that information.

12-28-2003, 02:05 PM
ok , can u give me code for number 1 & 3 or url have some tutorial
, i know there are many tools doing it but i need to build it myself.

12-28-2003, 10:03 PM
As far as I know, you can only obtain the IP address with a server-side language. Once you obtain it you could use something like an IP address locator. When searching on Google, I came up with this site: http://www.geobytes.com/GeoSelect.htm.

Hope that helps!

Happy coding! :)