Do a process once per day?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
moonlightembrace
Forum Newbie
Posts: 1
Joined: Fri Dec 12, 2003 2:57 pm

Do a process once per day?

Post by moonlightembrace »

I am writing a fantasy stock trading game and I need a way to tell my script to set the +/- changes and volumes back to zero once per day. I have no idea how to do this.

I cannot have a continually running process on my server, so I need to find a way for the script to check whether or not it has run the process today or not, and if not, to run the process everytime the script is run.

If you can help or at least point me in a general direction i would be very greatful.[/php_man]
User avatar
Saethyr
Forum Contributor
Posts: 182
Joined: Thu Sep 25, 2003 9:21 am
Location: Wichita, Kansas USA
Contact:

Post by Saethyr »

[google]CRON[/google]

I cannot remember the one that runs as a service on winders...


Saethyr
Post Reply