4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: TIMT on March 26, 2006, 10:23:27 PM
-
Hi,
is there a possibility to put the number of hits automatically to 0 at the end of month?
I have to do that each month manually.
Thanks for helping me.
TIMT
-
Do you update the hits manually in phpmyadmin?
If not, i think that would be the easiest way.
-
I do that in ACP. There ist a function for that... very easy to do.
The only thing is, I have to rember to do this task. I mean, if there is not an easy solution.... I let it be and will do it manually in the ACP.
-
the main problem is,
that php doesn't support time related stuff very well.
if you do it automaticcly only useing php,
then every time e.g. the global.php is called,
a function in it, has to check if already one month is over.
But if you wish anyway to do it automaticcly,
fore sure it can be done.
-
You can use cron-jobs :D
the can automatic do some db fun(c)tions in mysql :D
I havo not the knowlege to write it i'm sorry :roll: :oops:
-
of course there are the option of cron job,
but i think most users doesn't have that option.
-
No that's for sure.
I must ask my webhosting to install it
but it works fine
and i don't use it now
but it is a easy way to do this task