I want to use a clients IP address to find where they are requesting from so that I can dynamically arrange page content to make it easier to find what they want and push less important stuff out of focus. Im sure you've seen something similar before.
Right now I have a PHP script that I wrote which captures the IP and stores it into a variable named "ipAddr". I can explode it into octects or keep it as a 32 bit value. And if needed i can write it to a .txt file, but I dont want to do this because I have no use for the file once the user leaves.
What IM looking to find out is what do I do with this variable to get geo info from it? Im aware of services that do this for a fee or do it if you type in every IP into a text field on their site.... but I need to be able to send out just the "ipAddr" variable and get beack just the [ city, state, zip, latitude, longitude ] . If I can get that info into a javascript variable (thru server or direct from source) then I'll be golden .
2007-02-14
18:19:46
·
2 answers
·
asked by
bonesawosu
2
in
Computers & Internet
➔ Programming & Design