From 35642157dc5b17bb06f803189ab9c7dff01c7425 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 30 Jun 1999 13:50:48 +0000 Subject: Simple hit counter --- html/counter.php3 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 html/counter.php3 (limited to 'html/counter.php3') diff --git a/html/counter.php3 b/html/counter.php3 new file mode 100644 index 00000000..285dc88d --- /dev/null +++ b/html/counter.php3 @@ -0,0 +1,43 @@ +"; + } else { + print ""; + }; + } else { + $num = fgets($fp,$maxlen); + $num += 1; + print ""; + }; + rewind($fp); + fputs($fp,$num); + fclose($fp); +} else { + print ""; +}; +?> + -- cgit v1.2.3