Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Web Stats include via PHP  (Read 2178 times)

0 Members and 1 Guest are viewing this topic.

WarpGate

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
[Solved]: Web Stats include via PHP
« on: March 30, 2004, 03:01:53 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Solved]: Web Stats include via PHP
« Reply #1 on: March 30, 2004, 11:06:34 pm »

next time, read the faq: custom header/footer before posting, please.

GauGau
Logged

WarpGate

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
[Solved]: Web Stats include via PHP
« Reply #2 on: April 01, 2004, 09:50:50 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 14 queries.