> thats the thing the urls should be able to parse http:// or www or both and > i have to unfortunatly clean up a forced port and directory in the url > aswell for gethostname to work
Well, your original question should of said that and we wouldn't be wasting time. preg_match("%\.([^.]+\.[a-z]+)%",$host,$match) $match[1] would have your name. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php