Hi all! I'm trying to use BBClone to keep stats of all my site's webpages. So I simply created a php file and included it in all my pages.
This is what it contains :
<?php
$filename = basename($_SERVER['SCRIPT_FILENAME']);
define("_BBC_PAGE_NAME", "$filename");
define("_BBCLONE_DIR", "stats/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>
The only problem is that when I view the detailed stats, for some pages it shows the right filename (for example xxx.php or yyy.php) while for others it says "Main Site" instead of the right filename..... 😕
It's very weird... since the included file is always the same and it's included always on the beginning of the page....