I run gameworldx.com and I just bought gameworldx.net. The one I just got i set up at a parked domain. If you use that one to access my forums, the domain is changed to gameworldx.com because of the settings in the forum. The only easy way around this is to have two config files for the forum. One set up for the .com address and one for the .net addess.
All I need to do is get the "com" or "net" from the domain and I could do something like this to include the forums config file
if ($tld == "com"){
include('config_com.php');
} elseif ($tld == "net") {
include('confid_net.php');
} else {
echo "Error!";
}
Is there an easy way to do get the TLD?