How would I display the domain name of the page I am at. Lets say it is www.domain.com/something.html
and I want to display domain.com. Exactly like that. No www, or http://
I have tried
<?php echo htmlentities( $_SERVER['REQUEST_URI'] ); ?>
but it does not quite work.
The code above displays a frontflash '/'. And not the domain.extension.