Forums / General / Download counter for external files

Download counter for external files

Author Message

Stéphane Bullier

Wednesday 01 March 2006 7:17:57 am

Hello,

After read all topics about the subject :
http://ez.no/community/forum/setup_design/load_counter_how_to
http://ez.no/community/forum/suggestions/better_tracking_of_visitors
http://ez.no/community/forum/general/using_configuration_of_webalizer_for_website_s_statistics/re_using_configuration_of_webalizer_for_webs
http://ez.no/community/forum/general/website_stats

I didn't found the answer of my question.

I would like to implement download counter (for every clic) on link (file are hosting on other web server) visible on public site. So for my class "Tools" these links are attribute with link datatype. So i can't use the solution like in contribs section of Ezpublish site.

My host solution propose "Webalizer". How is it possible to fetch the statistiques of this tools with Ezpublish to increment a download counter ?

Or there is an other solution ?

Thank for help.

Bye. (Sorry for my bad english)

Stéphane

Stéphane Bullier

Friday 10 March 2006 2:13:46 am

Hello,

I set cron job for analyzing the apache logs with updateviewcount.php. I customize the logfile.ini for apache read the acces_log.

When I run runcrojob.php with this commande line : /usr/bin/php4 -C runcronjobs.php

I have

Running cronjobs/updateviewcount.php
Update content view count ...
Started at Vendredi 10 Mars 2006 11:02:55 am

Start line:
<ip_adress> - - [10/Mar/2006:11:11:13 +0100] "GET /fr/tools HTTP/1.1" 200 22537 (change ip adress)
Finished at Vendredi 10 Mars 2006 11:02:55 am

View count have been updated!

But nothing is inserting into DB so the view_top_list fetch show nothing.

How to correct this ?
I use ezpublish 3.7.3 with apache2.

Stéphane