Help with cron Job

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
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Help with cron Job

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Help with cron Job

Post 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.
(#10850)
Post Reply