Click to See Complete Forum and Search --> : apache: counting hits of html files...


jaitropfaim
02-18-2003, 08:50 AM
hi!

i've to maintain a quite big website...

there are just HTML documents and some images...
it even has a structure...
all topics are in a different directory in the www-root...
i.e.:
<pre>
www-root/
|
+sports/
|
+news/
|
+and so on..../
</pre>

they do already have statistics, that are done by webalizer...

but they want some additional statistics...
those statistics shall be saved into a simple MySQL database for further use:
<pre>
+------+-------+
| dir | count |
+------+-------+
</pre>

they want a listing of all directories and their corresponding pageviews...
i.e. if sports/index.htm is called the pageview counter of the folder sports gets increased by one!
or if news/whatever.html is called the pageview of the folder news gets increased by one!

how can i do this?
i don't want to modify each html document so that it may will increase a value in database... ;)

there has to be an easier way! :)

thanks for any help

C Ya Marco