Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I've got a bad feeling about this.


devel / comp.sys.acorn.misc / Re: Statcounter.com

SubjectAuthor
o Re: Statcounter.comTim Hill

1
Re: Statcounter.com

<59732977eatim@invalid.org.uk>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=1490&group=comp.sys.acorn.misc#1490

 copy link   Newsgroups: comp.sys.acorn.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!aioe.org!UrJTc/xR3nHWn6+5Z+2t5Q.user.46.165.242.91.POSTED!not-for-mail
From: tim...@invalid.org.uk (Tim Hill)
Newsgroups: comp.sys.acorn.misc
Subject: Re: Statcounter.com
Date: Tue, 28 Sep 2021 19:17:48 +0100
Organization: timil.com
Message-ID: <59732977eatim@invalid.org.uk>
References: <93e58a7259.harriet@bazleyfamily.co.uk>
Injection-Info: gioia.aioe.org; logging-data="49601"; posting-host="UrJTc/xR3nHWn6+5Z+2t5Q.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Pluto/3.16 (RISC OS/5.24) NewsHound/v1.50-32
X-Notice: Filtered by postfilter v. 0.9.2
 by: Tim Hill - Tue, 28 Sep 2021 18:17 UTC

In article <93e58a7259.harriet@bazleyfamily.co.uk>, Harriet Bazley
<harriet@bazleyfamily.co.uk> wrote:
> I've been using https://statcounter.com for many years, but with every
> site revamp it has become a little more unusable; for the last year or
> so I've resorted to downloading the entire log data and inspecting it
> manually in order to see which pages have received hits recently (the
> only level of data I was ever particularly interested in).

[Snip]

If your server can run PHP scripts (this works with WebJames w/PHP!) your
pages can write their own log files.

<?php
$line = date('Y-m-d H:i:s') . " - $_SERVER[REMOTE_ADDR] -
$_SERVER[REQUEST_URI]";
file_put_contents('visit.log', $line . PHP_EOL, FILE_APPEND);
?>

e.g. rename index.htm to index.php and add the above snippet at the top,
before the HTML (or include() it!). If the visit.log file doesn't exist,
the first visit to a page containing this code will create it.

N.B. Don't use something this simple if you expect thousands of visitors
an hour!!!

--

Tim Hill
Webmaster, https://timil.com

websites : php : RISC OS

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor