jpf566 Posted November 13, 2009 Report Share Posted November 13, 2009 Hey guys, I?m taking care of a website for a company that has locations in two general locations (The Philadelphia/NJ area and the DC/VA/MD area) I would like it so when the user clicks ?Sales & Events? they are directed to the sales & events at the location they are closest to (Either the Philly/NJ or the DC,VA,MD area) Is there any way to effectively do this or will I need to create some type of gateway page so they can choose their location? I?m sorry if this is not in the right part of the Forum but if this is possible, I don?t know what type of scripting would be used? Thanks for any and all help! Jon Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted November 13, 2009 Report Share Posted November 13, 2009 Assuming that you have a Geo-location Database available, PHP can be used to determine their location. At least the location of their ISP, which is not entirely trustworthy. I have a Forum which is 99% Canadian users, but the stats for that site show 85% US users, so if you use the available log information, you may be surprised by the results. Maybe the way to handle it would be to give the user the choice of which set of events they wish to view? Quote Link to comment Share on other sites More sharing options...
jpf566 Posted November 13, 2009 Author Report Share Posted November 13, 2009 (edited) hmm So its really pretty complicated? I figured it wouldn't be that bad since i see advertisements all the time that obviously are aware of my location...whats up with that? Edited November 13, 2009 by jpf566 Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted November 14, 2009 Report Share Posted November 14, 2009 Don't let me scare you too much... It really depends on the database of ISP's and such. To get good data will cost you money to purchase and update the information which could change daily. I am not aware of a 'free' database of IP numbers to use. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.