Does anyone have or know where to get a script that displays how many hits have been that day?

Does anyone have or know where to get a script that displays how many hits have been that day?
theres a php one on techtuts,
ill update this post if i find the link
http://www.techtuts.com/forums/index.php?showtopic=29
Last edited by Eccentric; 20-09-2007 at 03:36 PM.
oo, i've also bene looking for this, thankstheres a php one on techtuts,
ill update this post if i find the link
http://www.techtuts.com/forums/index.php?showtopic=29![]()
Thats oknd ppl say techtuts suck :S
I know there's already been one posted, but, I was bored, so I coded this;
Then make a .txt called hits_today.txtPHP Code:<?php
$hits = file("hits_today.txt");
$hits[0] ++;
$fopen = fopen($hits , "w");
fputs($fopen , "$hits[0]");
fclose($fp);
echo("Hits Today: ");
echo $hits[0];
$date = date(H);
if($date = 23) {
$fopen = fopen($hits , "w");
fputs($fopen , " ");
fclose($fp);
}
?>
(I think there's an easier way of emptying a file's contents, but I can't remember)
Last edited by lolwut; 26-09-2007 at 05:07 PM.
i've been here for over 8 years and i don't know why
Want to hide these adverts? Register an account for free!