Need Counter Help

Posted by paulg1981, 01-08-2008, 10:19 AM
Hello All, This is my first post in Programming so be gentle :-) I have been looking all over the place trying to find a counter script that tracks unique visits and displays graphical count. The only catch is that I want it to count ip's once every 24 hours instead of once ever. I have found many counter scripts here and other places but none do both. If anyone has a canned script or wrote one themselves they would be willing to share it would be greatly appreciated! Thanks and and have a good one!

Posted by paulg1981, 01-09-2008, 12:07 PM
I have found a script that I like written in php. The only problem is that the uniques hits are counted only once instead of every 24 hours. I believe I can modify it to flush the .db file every day. Do someone know where to point me to learn the code to empty a .db file in php? Would just deleting the file work? I understand that fopen creates the file specified if it does not exist? if ($date != date("Y m d")) { unlink($file_ip); } Anybody? Am i on the right track here? Last edited by anon-e-mouse; 01-09-2008 at 08:31 PM. Reason: merged posts

Was this answer helpful?

 Print this Article

Also Read

Got hacked or got a virus

Posted by azn_romeo_4u, 04-20-2009, 09:30 PMThis code shows up on all my pages with an index.php...

javascripts/PHP with brakets on checkboxes

Posted by raulgonzalez, 02-14-2011, 12:44 PMHello, I have the HTML code below which I like to...

Server Firewall csf - Apf ...

Posted by tkanaco, 06-26-2008, 08:11 AMwhich is the better apf or csf for more security some...

Have you succeeded in using mod_auth_mysql with AES crypt?

Posted by ImageLogic, 02-09-2011, 10:04 PMIf you've been fortunate enough to have made AES...

Elgg - Group Discussions

Posted by jamiedolan, 02-12-2011, 07:20 PMHello; I found a free application called Elgg. It's...