PHP Classes

File: linecount_example.php

Recommend this page to a friend!
  Classes of Jake M  >  LineCount  >  linecount_example.php  >  Download  
File: linecount_example.php
Role: Example script
Content type: text/plain
Description: an example
Class: LineCount
Calculates the total lines of code in a directory
Author: By
Last change:
Date: 13 years ago
Size: 647 bytes


Class file image Download
<? include("class.lineCount.php"); ?>
    <TITLE>Source Code Count</TITLE>



= new lineCount;

// If no directory is given, it will use the directory of the script


// Use this method to output the summary and list of files to the page
    // You can customize the HTML from within the class


// Use this method to get the totals as an associative array:

$totals = $lineCount->summary(0);

# echo $totals["folders"] / $totals["files"] / $totals["lines"]