diff options
author | 1999-12-01 18:32:53 +0000 | |
---|---|---|
committer | 1999-12-01 18:32:53 +0000 | |
commit | a9010faaf01642251c211c22f4efc06a3e6e4963 (patch) | |
tree | 61532cb73306fc1e11040915cabb4ca1e7f6c614 /html | |
parent | a2883fea444ead5606cd5739736d47b254262a6d (diff) |
Added comments about initializing counter.
Diffstat (limited to 'html')
-rw-r--r-- | html/counter.php3 | 7 |
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) { |