<!--- start PHP code ---->
<?php
// *****************************************************//
// //
// Author - Marcus S. Xenakis 5/11/99 //
// marcus@xenakis.net //
// //
// This simple PHP script only runs on a UNIX server. //
// It is based on the "find" command. //
// //
// This program finds files with the extention "count". //
// It the opens the file and displays the first record. //
// For a PHP script to maintain the counter files see //
// http://www.xenakis.net/downloads. //
// //
// There is one modifications required in order //
// to run this script. You must set your root dir. //
// //
// *****************************************************//
// -- Set your home directory here
$home = "/home/yourdir";
echo "<font face=arial><br>";
print(date("m/d/y h:i"));
echo "<br></font>";
// --- read dir and identify counters
exec("find $home -name '*.count' ",$lines,$rc);
$count = count($lines) - 1;
Marcus Xenakis wrote :5
Please ignore the coments in the code that says the program
calls two other programs. It was left over from the porgram I
copied it from.