Web-Site
created by : Lumeco
Graphics & Media- 082 76
88 553 |
define ("HITCOUNT", "hitcounter.txt");
function addOne() {
$fh = fopen(HITCOUNT, "r");
$count = fread($fh, filesize(HITCOUNT));
fclose ($fh);
$count = $count + 1;
$fh = fopen(HITCOUNT, "w");
fwrite($fh, $count);
fclose ($fh);
}
function getcount() {
$fh = fopen (HITCOUNT, "r") ;
$count = fread ($fh, filesize (HITCOUNT));
fclose ($fh);
return $count;
}
addOne();
echo "This page has been accessed ";
echo getCount();
?>
|