i looked at parse_url, but couldn't seem to get the info that BulldogGC wanted out of the "URL" supplied...
parse_url appears to want to kick out the following pieces...
$url[scheme] = http
$url[host] = www.php.net
$url[path] = /download-php.php3
$url[query] = csel=br
but with a string like "http://01jetta:leafs99@www" it doesn't seem to like or know the parts to it as it's not a 'normal' url.
preg_split can do it like:
<?php
$foo = "http://01jetta:leafs99@www";
$fooSplit = preg_split("(/|:|@)","$foo");
echo ("
$fooSplit[3]
<br>
$fooSplit[4]
");
?>
however i am FAR from Guru, and am easily enlightened. just trying to help out, and hope i don't do more damage than good.