function commentCount($n) { $comments_path = "http://www.zetallis.com/blog/"; 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; } ?>
Once Upon a Time... - Oni's Sketchblog [ Home | Archives ] 2.26.2002
Rinun Taliv, a character from my story. He's a wyvern~ His eyes are misaligned in the pic though >.>; Bwah!-ed [] |