Mega Code Archive
Smart Counter - This little script is a plain and simple hit counter that
uses cookies to determine whether or not the visitor has already been counted.
$counterFile");
}
print "$num";
}
if (!file_exists($counterFile)) {
exec("echo 1 > $counterFile");
}
displayCounter($counterFile);
?>
/* Add the following to the very top of the page you want to count */