<?php
//1) Make a file called count.txt where this file resides
//2) CHMOD it to 777
//3) Add this function to your php script or include it as a separate file
//4) Use by typing echo bti_count(); in your php code.
function bti_count() {
$counterfile = "count.txt";
$count = @join("",file($counterfile));
$count++;
$handle = fopen($counterfile, "w+");
fputs($handle,$count);
fclose($handle);
return $count;
}
?>