Author Topic: put the number of hits automatically to 0 at the end of month  (Read 11173 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
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

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: put the number of hits automatically to 0 at the end of month
« Reply #1 on: March 26, 2006, 11:04:13 PM »
Do you update the hits manually in phpmyadmin?
If not, i think that would be the easiest way.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: put the number of hits automatically to 0 at the end of month
« Reply #2 on: March 26, 2006, 11:22:02 PM »
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.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: put the number of hits automatically to 0 at the end of month
« Reply #3 on: March 27, 2006, 12:21:05 AM »
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.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: put the number of hits automatically to 0 at the end of month
« Reply #4 on: March 30, 2006, 09:34:37 PM »
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:



Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: put the number of hits automatically to 0 at the end of month
« Reply #5 on: March 31, 2006, 03:01:25 AM »
of course there are the option of cron job,
but i think most users doesn't have that option.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: put the number of hits automatically to 0 at the end of month
« Reply #6 on: March 31, 2006, 06:04:34 AM »
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