I'm creating a link echange script for one of my sites, when validating the link has been placed on their site I want to check the hompage/root of the site for a link. If they give me a url such as: http://mysite.com/abc/ssds/page.php Is there anyway in php to just get the root: http://mysite.com/ Without using a stripping function? Thanks