Skip to content

Commit b8217c0

Browse files
committed
Update index.php
Removed file size being written at the end of each post
1 parent 5796e77 commit b8217c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
{
4444
echo '<h3>' . $postdata->post[$i]->title . '</h3>';
4545
echo '<h5>' . $postdata->post[$i]->data . '</h5>';
46-
echo '<p>' . readfile('posts/' . $postdata->post[$i]->content) . '</p><br />';
46+
$fh = fopen('posts/' . $postdata->post[$i]->content, 'r');
47+
echo '<p>' . fread($fh, filesize('posts/' . $postdata->post[$i]->content)) . '</p><br />';
48+
fclose($fh);
4749
}
4850

4951
//begin footer of visible page

0 commit comments

Comments
 (0)