aboutsummaryrefslogtreecommitdiffhomepage
path: root/html
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1999-12-01 18:32:53 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1999-12-01 18:32:53 +0000
commita9010faaf01642251c211c22f4efc06a3e6e4963 (patch)
tree61532cb73306fc1e11040915cabb4ca1e7f6c614 /html
parenta2883fea444ead5606cd5739736d47b254262a6d (diff)
Added comments about initializing counter.
Diffstat (limited to 'html')
-rw-r--r--html/counter.php37
1 files changed, 7 insertions, 0 deletions
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) {