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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:15:06
Script start
Timing: Jan 31 2025 06:15:06
Module start 'layout'
Timing: Jan 31 2025 06:15:06
Module start 'content'
Timing: Jan 31 2025 06:15:06
Module end 'content'
Timing: Jan 31 2025 06:15:06
Script end

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.1328151.2109
Module start 'layout' 0.00720.0034 739.343836.6641
Module start 'content' 0.01060.0057 776.007890.2500
Module end 'content' 0.01630.0021 866.257829.9922
Script end 0.0184  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.7707140.0002
Check MTime0.00115.9853140.0001
Mysql Total
Database connection0.00073.571610.0007
Mysqli_queries0.004926.822930.0016
Looping result0.00000.076210.0000
Template Total0.00168.410.0016
Template load0.00137.078510.0013
Template processing0.00021.311610.0002
Override
Cache load0.00094.932210.0009
General
dbfile0.00168.443180.0002
String conversion0.00000.033640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs