function commentCount($n) { $comments_path = "http://www.cant-sleep.net/blogger/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 .= " comment";} else {$comments .= " comments";} } else { $comments = "0 comments"; } return $comments; } ?>
| Beecher |
|
March 01, 2002
Posted
12:30
by Eight Hundred Mice [ comment ]
|