Originally posted by jayant
$printing[1] = str_replace('</div><hr class=storyIndexDiv width=80%>', "<br>",$printing[1]);
this one will work. tested 🙂 [/B]
Nope 🙁
maybe it's better if I post all the code 🙂
<?
exec("/usr/bin/wget -q http://www.teamtalk.com/teamtalk/Team_News/0,1562,16,00.html -O /tmp/teamtalk.html");
$file = fopen("/tmp/teamtalk.html", "r");
$rf = fread($file, 20000);
$grab = eregi("<br><div class=topStoryIndexTitle>(.*)<center><form name=archive", $rf, $printing);
fclose($file);
$printing[1] = str_replace("/teamtalk", "http://www.teamtalk.com/teamtalk", $printing[1]);
//$printing[1] = str_replace("</div><hr", "<br>", $printing[1]);
$printing[1] = str_replace('</div><hr class=storyIndexDiv width=80%>', "<br>",$printing[1]);
echo $printing[1];
?>