Reputation: 2291
I'm having a user control panel (UCP) for my game server.
I offer different memberships (gold/silver/bronze etc) for money.
However, I want to run a PHP script every 24 hours, to run a check over the "users" database and see if 30 days have elapsed. I know how to create the function but I don't know how to make it work automatically. My host is using Windows Server 2008 R2.
Upvotes: 1
Views: 399
Reputation: 16553
Scheduled jobs are call cron jobs under linux.
Configuring cronjobs usually requires you to use the shell (over SSH). Sometimes a hosting provider might provide to schedule jobs through their control panel.
Here's are great article about how to add a cronjob.
Under windows, you can use the task schedular to execute a job periodically. Read this howto for that.
Upvotes: 2