[snip] and gethostbyname is only displaying the ip if I pass it something like www.google.com
Any idea how i can "strip" the first 2 examples to get the format i can pass to gethostbyname() ? [/snip] Start here ... http://www.php.net/url -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php