1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats the simplest way of doing geolocation for offers?

Discussion in 'Web Design' started by fairlyliquid, Nov 2, 2011.

  1. fairlyliquid

    fairlyliquid Newbie

    Joined:
    Feb 22, 2011
    Messages:
    34
    Likes Received:
    0
    Im trying to get a different iframe displayed on a page depending on the visitors country.

    Ive looked at a couple of php methods but they seem quite complex for what seem a simple task at first.

    I just want to check is there an easier way of checking the visitors country that maybe ive missed? Java maybe?
     
  2. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    PHP is usually easiest. You can just make a call to any of the numerous geolocation APIs and use the returned country code to do your bidding. Any of your PHP scripts probably do this, but probably have more features that you can strip out of them.
     
    • Thanks Thanks x 1