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!