Quote:
Originally Posted by k0nr4d
sounds like all he is doing is reading the end of the domain name from your hostname...
i bet the code looks like this:
$array = explode('.',$hostname);
$array = array_reverse($array);
echo $array[0];
|
Not exactly but very close, very simple nothing fancy just wanted to test it out ;) It's impossible to get 100% correct what ever you do, just needed something to catch most of the surfers. If the script don't have a match i will just fall back to dollar.