Jump to content

ellis

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by ellis

  1. Sorry for the mix up on terms. Thanks for the corrections on those, @Hall of Famer, you were spot on as to what I meant initially. Well here is what I came up with but I do not think I am doing this correctly still. define("DESTINATION", ''); if($geoip_country_code == 'UK') { $destination="http://www.uk.co.uk"; } elseif($geoip_country_code == 'CA') { $destination="http://www.ca.ca"; } elseif($geoip_country_code == 'FR') { $destination="http://www.fr.com"; } else { $destination="http://www.therest.com"; }
  2. @sjvmv Thanks for that I am going to work with your example, I think it shows me enough for what I want to do. Will post back what I come up with for criticism.
  3. Hi guys very new to php so hopefully this is not a painfully obvious thing. Currently what I have for a site I made is a config file where I define a destination link. Such as so define("DESTINATION", "http://site.com"); What I am trying to do now is make the link that DESTINATION gets be based on GeoIP. So it would need a bunch of if elseif's. Basically there are a few countries that get the main DESTINATION link. Then the rest of the countries not in this I guess you could call it "white label" would mostly get differing individual links. So if US, CA, UK, AU are all in whitelabel they get stuck with the same link, any other geo country designation starts going through the list of countries for its proper destination. Can anyone be nice enough to point me into the right direction in how I should go about making this happen. Thank you for the help and time!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.