[Solved]: Web Stats include via PHP [Solved]: Web Stats include via PHP
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Web Stats include via PHP

Started by WarpGate, March 30, 2004, 03:01:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WarpGate

Hi Guys

I have just upgraded to a new stats package for my website, the old one used a piece of javascript to track pages, the new one use a PHP Include... (Just to quickly explain why, javascript is client side so this does not track when a serach engine spiders your site, but a PHP include is done server side)...

I was wondering the bast place to include this???

I saw that every script has an include of

require('include/init.inc.php');

could I put my code below this ??? or

I assume that because everypage has the template attached to it I could try it in the theme.php (the theme templat is htm) but the theme.php shuld get used in ever page ???

but where, and what is the best way, do i do every script, or the init.inc.php or the theme.php

any help would be great (especily where to put the one line of code)

Cheers in advance

Chris

Joachim Müller


WarpGate

Hi GG

Sorted now, it was not Coppermine, it was the stat include, using the same variable.... DOH !!!

I had tried the code in the FAQ and assumed it did not work or was from an earlier version... but no it does work

Thanks

Chris