We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5796e77 commit b8217c0Copy full SHA for b8217c0
index.php
@@ -43,7 +43,9 @@
43
{
44
echo '<h3>' . $postdata->post[$i]->title . '</h3>';
45
echo '<h5>' . $postdata->post[$i]->data . '</h5>';
46
- echo '<p>' . readfile('posts/' . $postdata->post[$i]->content) . '</p><br />';
+ $fh = fopen('posts/' . $postdata->post[$i]->content, 'r');
47
+ echo '<p>' . fread($fh, filesize('posts/' . $postdata->post[$i]->content)) . '</p><br />';
48
+ fclose($fh);
49
}
50
51
//begin footer of visible page
0 commit comments