echo "Server info
";
$baseurl=$_SERVER['SERVER_NAME'];
echo "You're accessing: " . $baseurl . "
"; //or $_SERVER['HTTP_HOST'] . "
"; //or $_SERVER['SERVER_NAME']
echo "This server's Ip: " . $_SERVER['SERVER_ADDR'] . "
";
echo "This server's hostname: ";
if (function_exists('gethostname')) {
echo gethostname() ;
} else {
//for php < 5.3
echo php_uname('n');
}
echo "
";
//get baseurl to direct customer to testing info
echo "Test this domain here: " . $baseurl . "";
?>