public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "A. Khattri" <ajai@bway.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] recomendations for web stats in php
Date: Mon, 8 Aug 2005 12:36:57 -0400 (EDT)	[thread overview]
Message-ID: <Pine.BSO.4.58.0508081234140.17873@ida.bway.net> (raw)
In-Reply-To: <e22605be05080705464476eb19@mail.gmail.com>

On Sun, 7 Aug 2005, glumtail wrote:

> Why not write a GLOBAL script for collecting some usefull information?
> And then just be included in every pages, store records in a
> particular file.

This is a horrible way to do it. A lot of free stats services do something
similar with a block of JavaScript (usually some code that hits a script
on the stats server while the page is loading).

Since your web server logs accesses and errors it does most of the work
for you! All you need to do is download the logs and run analog on them
(optional: you could also setup analog to feed data to reportmagic).

On our servers we have written scripts to do this weekly.


> 2005/8/7, Hans-Werner Hilse <hilse@web.de>:
> > Hi,
> >
> > On Sat, 06 Aug 2005 12:34:58 -0300
> > Mauro Faccenda <faccenda@gmx.net> wrote:
> >
> > > I have an customer that has a website hosted in a chrooted environment
> > > and want a stats page (hits, origin, etc...) I have access to the apache
> > > logs but I don't have a shell access, so I was thinking if there is any
> > > php script that reads the log file and plots a nice web page with those
> > > stats.
> > >
> > > Or can anyone suggest another solution?
> >
> > Hm, I don't think using a simple php script would work very reliably.
> > Parsing the log files can become a heavy task depending on the
> > logfile's size. So I think it's always the best solution to run the
> > analyzer from command line.
> >
> > You could e.g. run the analyzer on a different host where you have
> > command line access and can run that scripted every night. The
> > resulting stats pages and graphs can then be synced back to the web-
> > only server.
> >
> > Another possibility would be to use desktop programs for the logfile
> > analysis. I don't know of good free programs here, but at least there
> > are a few very professional commercial ones.
> >
> > Both solutions only require access to the logfile which you told you
> > have.
> >
> > -hwh
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
>
>

-- 
English

 1. n. obs. The source code for a program, which may
   be in any language, as opposed to the linkable or executable binary
   produced from it by a compiler.  The idea behind the term is that
   to a real hacker, a program written in his favorite programming
   language is at least as readable as English.  Usage: mostly by
   old-time hackers, though recognizable in context.  2. The official
   name of the database language used by old the Pick Operating System,
   actually a sort of crufty, brain-damaged SQL with delusions of
   grandeur.  The name permitted marketroids to say "Yes, and you
   can program our computers in English!" to ignorant suits
   without quite running afoul of the truth-in-advertising laws.

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-08-08 16:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-06 15:34 [gentoo-user] [OT] recomendations for web stats in php Mauro Faccenda
2005-08-07 10:42 ` Oscar Carlsson
2005-08-07 11:40 ` Hans-Werner Hilse
2005-08-07 12:46   ` glumtail
2005-08-08 16:36     ` A. Khattri [this message]
2005-08-08 17:36       ` daniel
2005-08-08 16:54     ` kashani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSO.4.58.0508081234140.17873@ida.bway.net \
    --to=ajai@bway.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox