<?php

   $url = 'http://e...content-available-to-author-only...o.com/pasta/pasta2/past/ficheiro.php';
   $elementos = parse_url($url);

   echo $elementos['host'];

