PDA

View Full Version : Tracking Exhibitions with phpOpenTracker


ArtM
23rd of May 2003 (Fri), 02:48
This may be of interest to those wishing to track accesses to individual EE exhibits.

The package chosen is phpOpenTracker, a PHP/MySQL access logging script from http://www.phpopentracker.de/

I installed this as a new domain and modified php.ini's list of globally accessable paths to enable access from any domain path.

The logging script code was added to list.php at the very end, just in front of the /BODY html statement on or about line 1620 in V1.3RC; and reads:



On my system server, which does NOT do DNS lookups, I needed the two lines starting at "// Force Host Name Update". You should try without these first.

Pekka may know of a better and/or more efficient/performance oriented place for the logging script code.

I happened to define '200+Exhibition ID' as the number sequence to use. Others might choose differently.

Note each exhibition ID number then must be defined at the first of phpOpenTracker's Simple Report script at
/phpOpenTracker/docs/examples/simple_report/index.php

A snippet of my coding there reads (appx):

. . .
210 => 'photos-ExhibitOne.(mydomain)' ,
211 => 'photos-ExhibitTwo.(mydomain)' ,
212 => 'photos-ExhibitThree.(mydomain)' ,
. . .

This script when executed will then display access stats for individual exhibits.