[pmwiki-users] statistics or logs ?

malexism (f) malexism at free.fr
Mon Apr 11 07:08:36 CDT 2005


Hello,

In a mail, 2003-09-02, PM said to Geoff Hopkins that "Another option 
might be to have PmWiki log and count its own hits in a log file, rather 
than relying on the web logs.  This could be easily done via an add-on 
module if someone wanted to write one."

Does PmWiki write a log somewhere, now ?

Or, is there a very simple way for me to add a little PHP in the 
pmwiki.tml, to increment a counter in a file (per group) ?
Something like this one :

<?
$fich="$Group.cpt";
$fp=fopen("$fich","r+");
$cpt=fgets($fp,10);
$cpt++;
fseek($fp,0);
fputs($fp,$cpt);
fclose($fp);
?>

thx,
marc
-- 

M.Alexis.M
http://www.malexism.com/o/



More information about the pmwiki-users mailing list