Code: Select all
<?php
$fcontents = file ('News.txt');
while (list ($line_num, $line) = each ($fcontents)) {
$line = str_replace("/New", "<hr>", $line);
echo $line;
if ($line != "<hr>") { echo "<br>"; }
}
?>Code: Select all
<b>Site Coming Soon!</b>
/New
1/1/2003 - Happy New Year!
Happy New Years all!!!any help on why it does this would be greatly appreciated. thanks.