IP Address to Zip Code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaccrock
Forum Newbie
Posts: 17
Joined: Wed May 17, 2006 1:05 pm

IP Address to Zip Code

Post by jaccrock »

Hi Everyone,

I am creating a website that uses the weather.com script to show a small weather window and it runs off a zip code. I'd like my site to be personalized to each user and have the weather based on their zip code. Is there any way to get a zip code for that user? I thought it would be through the ip address, but I haven't found anything good yet. I am trying to do this for cheap/free... any ideas???

Thanks,

Jac
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

There are tables out there you can get however, you can't trust IP addresses.
jaccrock
Forum Newbie
Posts: 17
Joined: Wed May 17, 2006 1:05 pm

Post by jaccrock »

I know ip address's are the surest thing, but I'm helping a realtor so its not too important. Do you know where I can get any of the tables you mentioned?
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

You could avoid using db and go with web services

http://xmethods.net/ve2/ViewListing.po? ... 8F3DB014C1
jaccrock
Forum Newbie
Posts: 17
Joined: Wed May 17, 2006 1:05 pm

Post by jaccrock »

Thanks, but I'm looking for something free.
Post Reply