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 <[EMAIL PROTECTED]>:
> > Hi,
> >
> > On Sat, 06 Aug 2005 12:34:58 -0300
> > Mauro Faccenda <[EMAIL PROTECTED]> 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 via email to