...

View Full Version : IP address



hiddenbox
02-19-2008, 01:33 AM
I'm creating a weather section on my new website. Is it possible to get someones IP address and then calculate the sunrise/sunset from the IP? If it is possible where do I look for it at.

_Aerospace_Eng_
02-19-2008, 01:42 AM
No not with HTML. You will need a server side language to get their IP address. Once you do this you will have to some how trace back where the ip address originated from and then from that you might be able to do what you want. I found this
http://www.linuxjournal.com/article/7856

I don't know how accurate the data is as it says my IP comes from California, yet I am in Florida.

There is also this
http://www.ip2location.com/
which is a little expensive.

Apostropartheid
02-19-2008, 01:45 AM
That's called dynamic DNS: your IP address is not unique to you, Aero, because it's selected from a pool of avalible addresses.

I have the same problem. I'm very clearly a thoroughbred Londoner, but apparently I'm from Gloucester?

hiddenbox
02-19-2008, 01:52 AM
What about a zip code. If a user types in as there zip "55555" then the forecast for that area comes up. (I could also use iframes). What would be the best way to do this?

_Aerospace_Eng_
02-19-2008, 02:23 AM
Zip code might work better. I just found this
http://www.weatherplus.com/weathernews/9895329/detail.html

hiddenbox
02-19-2008, 03:14 AM
thanks, that helped.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum