'; echo 'isopod.cool blog comments'; echo 'Every comment posted on my blog in chronological order.'; echo 'en-us'; echo 'https://isopod.cool/blog/comment/'; echo 'My crappy PHP code'; $postlist = json_decode(file_get_contents("posts.json")); $totaloutput = ""; foreach($postlist as $post) { $output = ""; $date = date("D, d M Y H:m:s", $post->date) . " GMT"; $name = $post->name; $message = $post->message; $entry = $post->entry; $output = $output."Comment from ".$name." on ".$entry.":

".$message."

"; $totaloutput = "Comment on " . $entry . " from " . $name . "https://isopod.cool/blog/posts/" . $entry . "/" . $date . "".htmlentities($output)."" . $entry . $post->date . $name . "".$totaloutput; } echo $totaloutput; echo "
";