Here is the code
<?
function countlines($list,$ctr) { if (file_exists($list)) { $lines = file($list); while(list($key, $val) = each($lines)) { if (stristr ($val, "<!-- comment -->")) { $ctr++; } } } if ($ctr > 0)
return("(".$ctr.")");}
?>
The code returns how many comments have been made per each entry.
But, the comments are in a different directory than this page with this code in it.
How do I tell the code to look in that directory?