2 ms·$_SERVER['HTTP_HOST'] Parse that to get the first part of it like in the example.by mdasen 18y ago$_SERVER['HTTP_HOST'] Parse that to get the first part of it like in the example.