PHP Count help - I'd like to make an adjustment...
Posted: Thu Feb 21, 2008 10:20 pm
I'm sorry if this is the wrong topic, but I couldn't find anything for your "PHPCount" PHP Text Hit Counter...
First off, thanks for a great script! It works perfectly! Since I'm not very experienced with PHP or writing scripts - I was wondering if you could help me with a small adjustment to the counter.php file. I would like to make the counter either reset after a specified period of time - or, only keep hit data for a set length of time. For example, it would be great if the counter would only display a hit count from the previous 30 days. I'm not sure if this is possible - but somehow I would like to limit the output to a specific time frame.
Here's my counter.php file:
(REMOVED: no need to paste it, we can all download it)
It seems to me like this should be possible. If not, I can always manually delete data from the .TXT files whenever I want to reset the counter. But it would be nice if it could be automated through the script.
THANKS FOR YOUR HELP!
First off, thanks for a great script! It works perfectly! Since I'm not very experienced with PHP or writing scripts - I was wondering if you could help me with a small adjustment to the counter.php file. I would like to make the counter either reset after a specified period of time - or, only keep hit data for a set length of time. For example, it would be great if the counter would only display a hit count from the previous 30 days. I'm not sure if this is possible - but somehow I would like to limit the output to a specific time frame.
Here's my counter.php file:
(REMOVED: no need to paste it, we can all download it)
It seems to me like this should be possible. If not, I can always manually delete data from the .TXT files whenever I want to reset the counter. But it would be nice if it could be automated through the script.
THANKS FOR YOUR HELP!