From a9010faaf01642251c211c22f4efc06a3e6e4963 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 1 Dec 1999 18:32:53 +0000 Subject: Added comments about initializing counter. --- html/counter.php3 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'html/counter.php3') diff --git a/html/counter.php3 b/html/counter.php3 index 285dc88d..0ea4593d 100644 --- a/html/counter.php3 +++ b/html/counter.php3 @@ -15,6 +15,13 @@ $maxlen = 10; // if file doesn't exist already, so start with // empty files made with touch. +// Here's how to cause it to be initialized: +// +// rm -f counter.txt counterstart.txt +// touch counter.txt counterstart.txt +// chmod o+w counter.txt counterstart.txt +// + if (is_readable($counterFile) && is_writeable($counterFile)) { $fp = fopen($counterFile,"r+"); if (filesize($counterFile)<1) { -- cgit v1.2.3