how do i break a url like
http://phpbuilder.com/forum/list.php3?num=2
down to
phpbuilder.com
iv been trying to use ereg replace, heres my coding..
<?php
$url = "http://www.sonce.net/index.php";
echo "Url: $url<BR>";
$new = eregi_replace("http://", "", $url);
echo "Host: $new<BR>";
$new2 = eregi_replace("/*", "", $new);
echo "Host: $new2<BR>";
?>