this function retreives the contents of a web page and removes all the tags. see also file_get_contents

<?php
//file_fgetss.php
$path="r_tags_2.txt";
$handle = fopen($path, "r");
while (!feof($handle)) {
$buffer = fgetss($handle, 1400);
echo $buffer;
}
fclose($handle);
?>
<html>
<title> file_filesize.php</title>
<body text="#000080" bgcolor="#F7F0D7">
<br>
<?php
echo "file size is: ".filesize($path) . ' bytes';
?>
</body>
</html>

Now note that fgetss() function removes line break <br>