All pastes #924825 Raw Edit

fris

public text v1 · immutable
·published 2008-03-01 19:29 UTC
rendered paste body
<?

$http_host = explode('.', $_SERVER['HTTP_HOST']);
$tld = array_pop($http_host);
$domain = array_pop($http_host);
$half = strlen($domain) / 2;
$first_half = substr($domain, 0, $half);
$second_half = substr($domain, $half);

?>