[97379] in RedHat Linux List
RE: Page counters, without CGI?
daemon@ATHENA.MIT.EDU (Charles Galpin)
Mon Nov 2 23:18:05 1998
Date: Mon, 2 Nov 1998 23:09:56 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: James Michael Keller <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
===== Original Message from James Michael Keller <redhat-list@redhat.com> at
11/02/98 10:55 pm
>I export a web page from my network ( linux/apache ) to two other
>servers. I don't have cgi-bin access on these external servers.
>
>What I'm looking for is some JavaScript or Java Applet that I can
>include in the html source trees that can:
>
> Count site hits and display a counter
> Report those hits back to me
> Keep track of the total hitcounts from the mirrored pages
>
>
>Yeah, I know it's easy enough with cgi scripts and such, but it's not an
>option. Seeing as how this is just a learning project, I don't have the
>option of shelling out for closed-source java binaries.
>
> Thanks in advance.
>
>
>--
>===========================================================
> James Michael Keller | jmkeller@radix.net
> http://www.radix.net/~jmkeller
>-----------------------------------------------------------
>Contents (c)1998 James Michael Keller. All rights reserved
>===========================================================
James
hit counting is a server side activity. Even if you wanted to use an applet,
that applet would have to report it's invocation back to a server somewhere.
A cgi does not need to be on the same server as the one that served the
page. Have you html point to a cgi on your server that generates the counter
image, and keeps track of them. There are many sites out there that actually
provide this service.
If you really want to persue this applet idea, I imagine writing you own
protocol (however simple it may be), have a server listening on some port,
and write your applet to send a message to the server which will respond
with the count, then render it.
hth
charles
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.