Jump to content

Archived

This topic is now archived and is closed to further replies.

desithugg

timed script

Recommended Posts

umm is there anyway i can get some Integer rows in mysql to reset (set back to 0) whenever a new day starts?

Share this post


Link to post
Share on other sites
You need to do a cron job for that.
You basicly make the script the resets the number, and use a cron to run it every day :)

Orio.

Share this post


Link to post
Share on other sites
First, check if your host supports cron jobs.
If it does, make the script and then set a cron job (do you have cpanel, Plesk or something like that?).
If your host doesn't support cron jobs, you basicly cant do it.

Orio.

Share this post


Link to post
Share on other sites
umm i contacted my host and yes they do support cron jobs.I have made the scriot but what do i name the file.
[quote]00 00 * * * /aff/reset.php[/quote]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.