thanks man!
i had to make a few modifications, $tok wasn't ouputting anything but that was the start i needed. really do appreciate
-nick
function throw_links ($fileurl) {
$dataarray=file($fileurl);
for($i=0; $i<=sizeof($dataarray); $i++) {
$httpcounter=0;
if($dataarray[$i] != "") {
$tok_arr = explode("|",$dataarray[$i]);
for($j=0;$j<sizeof($tok_arr);$j++) {
global $links_target;
$tok_arr[$j] = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<a href=\"\\1://\\2\\3\" target=\"$links_target\">\\1://\\2\\3</a>", $tok_arr[$j]);
$tok_arr[$j] = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))", "<a href=\"mailto:\\1\">\\1</a>", $tok_arr[$j]);
if(($httpcounter==0) || ($httpcounter==1)){
echo "";
}
elseif($httpcounter==2) {
echo "\n<P><B>$tok_arr[$j]</B><BR>";
}
elseif($httpcounter==3) {
echo "\n\t$tok_arr[$j]<BR>";
}
else{
echo "\n\t$tok_arr[$j]<BR>";
}
$httpcounter++;
} // end for
} // end if
} // end for
} // end function