How do you strip out the domain name from a URL in php?
<p>Im looking for a method (or function) to strip out the domain.ext part of any URL thats fed into the function. The domain extension can be anything (.com, .co.uk, .nl, .whatever), and the URL thats fed into it can be anything from <a href="http://www.domain.com">http://www.domain.com</a> to www.domain.com/path/script.php?=whatever</p>

<p>Whats the best way to go about doing this?</p>
