I need to take a url and strip it down to jus the domain. example
http://www.mydomain.com/myhomedir/myapge.html
i need to get
www.mydomain.com out of it
Any help would be appreciated.
Try:
$url_parts = parse_url("http://www.mydomain.com/myhomedir/mypage.html"); echo $url_parts["host"];
Brett