View Single Post
Old 04-10-2008, 09:30 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,231
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];

Last edited by k0nr4d; 04-10-2008 at 09:32 AM..
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote