| 
<? include("class.lineCount.php"); ?>
<HTML>
 <HEAD>
 <TITLE>Source Code Count</TITLE>
 </HEAD>
 
 
 <BODY BGCOLOR="#FFFFFF">
 
 <?
 
 $lineCount = new lineCount;
 
 
 // If no directory is given, it will use the directory of the script
 
 $lineCount->dir="/path/to/files";
 
 
 
 // Use this method to output the summary and list of files to the page
 // You can customize the HTML from within the class
 
 $lineCount->summary(1);
 
 
 
 // Use this method to get the totals as an associative array:
 
 $totals = $lineCount->summary(0);
 
 # echo $totals["folders"] / $totals["files"] / $totals["lines"]
 
 ?>
 
 
 </BODY>
 </HTML>
 |