ucbones,
Would you mind? I'd be really grateful for a bit of code.
It just annoys me to see myself incrementing the count as I'm loading that page so often to check on design progress, and I finally got my hands on a counter that I can easily install across loads of sites and keep track of it all.
Here's what I've got so far to put on my "set cookie" page:
Set cookie
if (!isset($COOKIE['noCount'])) {
$value = "no_Count";
$time = time()+(3600*1000);
setcookie("noCount", $value, $time);
header("Location:".$PHP_SELF."");
}
else {
echo "Cookie is already set. \n<br>\n";
echo "The cookie's value is: ".$COOKIE['noCount'];
}
And now where would I add the "if cookie exist don't count else count" bit?
In the counter.php script or in my index page where I've got:
php require('../counter/phpcounter.php');
====================
Update
Ok, I've worked it out.
Pretty basic actually!