2) { $sub_domain = $domain_parts[0]; } preg_match('/^([^.]+\.)?([^.]+\.[^.]+)$/', $_SERVER['HTTP_HOST'], $captures); $website_domain = strtolower($captures[2]); $global_flight_id = 0; track_session(); $domain_file = "domain.extensionfile.net.$global_flight_id.inc.php"; if (file_exists($domain_file)) { require_once($domain_file); require_once("domain.extensionfile.net.common.inc.php"); require_once('render.inc.php'); } else { echo "Not found: F=$curr_flight"; } $timeparts = explode(" ",microtime()); $endtime = $timeparts[1].substr($timeparts[0],1); $total_length = $endtime - $starttime; //echo $total_length; ?>