function countlines($list,$ctr) {clearstatcache(); if (file_exists($list)) { $lines = file($list); while(list($key, $val) = each($lines)) { if (stristr ($val, "")) { $ctr++; } } } if ($ctr > 0) return("(".$ctr.")");} ?>
You are cool. |
Etsy shop!
erik 2:07 AM | permalink | yap $commentfile = $DOCUMENT_ROOT . "/archive/comments/5600648661015511200.comment"; echo countlines("$commentfile",0); ?>
You are cool. |
music: My Gold Mask
Had a mind-blowing time at the Darkroom last night with My Gold Mask. The stripped-down side project of Bang! Bang! doesn't feel stripped-down at all; both MGM and B!B! present the fiercest rock in Chicago.
erik 11:43 AM | permalink | yap $commentfile = $DOCUMENT_ROOT . "/archive/comments/6473383954206297594.comment"; echo countlines("$commentfile",0); ?>