Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I am looking for a code that do an event at spesified time at day!

    Hi All
    The matter is that I have a counter at my site, stores the values at a text file, and I want to reset this counter automatically to zero every day at a specified time, lets say at 6 pm, so any body have ideas how to do that?

    Regards

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    You need to use a cron job. You can write a php script to do the work then have the cron job activate it at 6pm every day.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •