GCount - unwanted reset

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
zeebulon
Posts: 2
Joined: Tue Jan 17, 2012 8:31 am

GCount - unwanted reset

Post by zeebulon »

Hi there,

first of all: great site & great scripts!!

So far I only use GCount (graphcount.php).
Installation and handling is easy and well documented, so thanks again for this. Counter runs without problems.

However, from time to time (once twice a day, then again only 2 times a month) the counter resets to 0 and starts all over again. The chmod of the [page].txt in /logs/ directory is set correctly to 777; there are 7 numbers configured. Apart of the sudden reset, there are no errors or other problems.
Can I trace the reset to some particular event? What could be the reason for this?

Any hints or help is greatly apprechiated! :)

Infos:
session_test: passed
PHP: PHP Version 5.2.17, Apache 2.0,
System: Linux vwp3564 2.6.18-prep-xenU-static-i686-he+10 #58 SMP Fri Apr 15 09:14:47 UTC 2011 i686

cheers,
zeebulon
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: GCount - unwanted reset

Post by Klemen »

You will probably need to install a counter with a MySQL database, because it looks like your text files are getting corrupted (possibly too many concurrent accesses).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
zeebulon
Posts: 2
Joined: Tue Jan 17, 2012 8:31 am

Re: GCount - unwanted reset

Post by zeebulon »

Hi Klemen,

woah, quick reply, thanks a LOT! 8) 8)

Well, that's what I thought could be possible;
but with about 2.700 - 3100 visitors per day - is that likely?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: GCount - unwanted reset

Post by Klemen »

It's really hard to say - it usually depends on the entire server, from how it's setup to under how much load the entire server is, not just one website.

Either way, MySQL databases are way more reliable than text files.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply