|
|
// now the ccontent of the file
$str = file_get_contents($link);
preg_match_all("/
(.*)<\/p>/Us", $str, $matches);
//display the title of the story
echo"".$matches[0][0]."
";
//set up a table for display
echo"| ";
// get the rest of the rest of the story
for($i = 3; $i < count($matches[1]); $i++)
{
//display paragraphs
echo $matches[0][$i];
}
//close table attributes for display
echo" |
";