count resets to 1 every now and then
Posted: Thu May 11, 2006 9:58 am
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:
Write your message below:
Hi there, it often happens that my counter resets to 1, I'm not sure if has got something to do with this line of code:
// If the log file doesn't exist we start count from 1 ...
if (! @$file = fopen($logfile,"r+"))
{
$count="1";
}
Can I just comment out the //$count="1"; part or what must I do? I'm not sure why this happens, maby the countet gets triggered from another page than the index page, because my link was setup like this: gcounter/graphcount.php?page=index.
Regards,
Armandt
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:
Write your message below:
Hi there, it often happens that my counter resets to 1, I'm not sure if has got something to do with this line of code:
// If the log file doesn't exist we start count from 1 ...
if (! @$file = fopen($logfile,"r+"))
{
$count="1";
}
Can I just comment out the //$count="1"; part or what must I do? I'm not sure why this happens, maby the countet gets triggered from another page than the index page, because my link was setup like this: gcounter/graphcount.php?page=index.
Regards,
Armandt