<?php $tags = "<h2><h3><p><b><a><img>"; $fh = fopen("article.html", "rt"); while (!feof($fh)) { $article .= fgetss($fh, 1024, $tags); } fclose($fh); $fh = fopen("article.html", "wt"); fwrite($fh, $article); fclose($fh); ?>