|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
counter
Suppose this is the basic of the basics but how would I create a daily hits counter. I have an excellent counter already but want to add a function so it will count only 24 hours as well as the total hits.
How would I get it to reset after 24hrs, would I need to call something when a user visits or can the server do it automatically when a time is reached? Cheers in advanced! |
|
#2
|
|||
|
|||
|
RE: counter
simply have your script check when last it was reset and if it was yesterday, just reset it.
else if you can setup a cronjob, you could simply call a script every 24 hours. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > counter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|