Draco
08-25-2007, 10:36 PM
Hello
I'm currently looking for php scripts, specificaly a counter, i've used some but they always reset after 10.000 hits :eek: .
Anyone know any script that WON'T reset after a certain amount of hits?:blush: thanks
w3bdesign
08-25-2007, 11:24 PM
You can easily make one yourself, just ask in the Programming forum here.
If you still can't figure it out, I may have time to help you out by making a PHP counter for you.
Draco
08-26-2007, 12:14 AM
I'll let u know, thanks ;)
im gonna take a look at the Programming Forum first :D
tnndotnet
08-26-2007, 12:33 AM
Yea, its actually really simple to do...
Personally I use PHP/MySQL for everything, so I would just create a table specifically for this and thats how I would count...
But if you want to take a little less secure route, you could set permissions to rw-rw-rw- to a file named something like hitcount.php and just fread, get the number in the file, number+1, fwrite, fclose.
I would also make one for you if you wanted as it is not very difficult to any extent...
Email me sometime if you need it, acidrain at thenerdnetwork dot net
Im actually going to write it now... one for php for fread/write/close and one for mysql =D
Dan
kieransimkin
08-26-2007, 08:12 PM
Why not try Google Analytics? Counters are soooo last century. It's all about gathering stats without letting your visitors know you're doing it. The depth of information you get from a decent statistical tracking system like Google Analytics is in another league to a simple page counter.
Mxhub
08-27-2007, 06:33 AM
check out a list of counter scripts here.
http://www.hotscripts.com/PHP/Scripts_and_Programs/Counters/index.html
Draco
08-27-2007, 05:21 PM
Why not try Google Analytics? Counters are soooo last century. It's all about gathering stats without letting your visitors know you're doing it. The depth of information you get from a decent statistical tracking system like Google Analytics is in another league to a simple page counter.
In fact I've been using Google Analytics since the very first day google released it :D and I use it on every site i work with,and yeah, it gives you alot of information but a client requested a "simple page counter"...so..i mean..what can you do if that's what the client wants :blush:
check out a list of counter scripts here.
http://www.hotscripts.com/PHP/Scripts_and_Programs/Counters/index.html
Thanks for the link, i've checked that before and i've that the current problem with my counters:eek: