*/ /** * This file should: * * 1. fetch the article teaser and attach a 'read more' link to it * */ $article = (isset($_GET['article']) ? $_GET['article'] : "No article"); $content = file_get_contents("articles/$article.html"); $doc = new DOMDocument(); $doc->loadHTML($content); $teaser = $doc->getElementById("teaser"); ?> <?php echo $article ?> nodeValue; } ?>
read more