readfile.php
<?php
$file = "data.txt";
$tags = "<h2><h3><p><b><a><img>";
$fh = fopen($file, "rt");
while (!feof($fh))
$article .= fgetss($fh, 1024, $tags);
fclose($fh);
$fh = fopen($file, "wt");
fwrite($fh, $article);
fclose($fh);
$bytes = readfile($file);
?>
Related examples in the same category