Page 1 of 1

Help with cron Job

Posted: Tue May 11, 2010 12:10 pm
by nite4000
Hey all

I am in need of some help. I have the code that will update the database. What I need help with is that i need it to check for how many days or how many times to do it. I have different options

Daily,weekly,monthly, ect and I have defined in database the days ex where I may have it update 1 a day for 10 days

I am not sure how to write all this I am gonna have this in a cron job to run 1 time a day but dont need all accounts to update if its a weekly thing



Any help you can provide would be nice.

Don

If you are interested in working with me on this you can look on my profile on here and contact me.

Re: Help with cron Job

Posted: Tue May 11, 2010 6:32 pm
by Christopher
It sounds like you need a table of these sites that contains their update schedule. When you cron runs, it will check the table to see which sites need updating.