function commentCount($n) { $comments_path = "http://www.postnuclearart.com/comments/"; if($file = @fopen($comments_path . "comments/$n.comment", 'r')) { $thisFile = fread($file, '1000000'); $thisFile = explode("\n", trim($thisFile)); fclose($file); $comments = sizeof($thisFile); if($comments == 1) {$comments .= " clever comment";} else {$comments .= " clever comments";} } else { $comments = "No comments yet"; } return $comments; } ?>
|
|
|||||||||