PHP Code:
<?php
$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('www.', '', $hostname);
echo "The domain: <B>".$hostname."</B> is Under Construction";
?>domain.com
If www,domain.com it will be domain.com
<?php
$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('www.', '', $hostname);
echo "The domain: <B>".$hostname."</B> is Under Construction";
?>
Leave a comment: