Display Domain Name

How would I display the domain name of the page I am at. Lets say it it http://www.eyeglasseshut.com/comfortable-prescription-eyeglasses.htm and I want to display desilva.biz. Exactly like that. No www, or http:// included.

In fact, it is very use to let PHP do such thing:

$hostname = $_SERVER[‘SERVER_NAME’];
$hostname = str_replace(‘www.’, , $hostname);

echo $hostname;

King Php Science Welcome, you are from: 54.198.143.223