php - Execute a timed command in a time command -


i working php application need check database of users whom has birthday today. through cron job.

now, when users birthday, need send them sms. sms has individual time associated determins when sms should send. lets john , peter has birthday today. peter works 01-09 should sms @ 01 , peter works 08-16 should sms @ 08.

i thinking dynamically creating same amount of cron jbos equals people has birthday on given date. cron jobs send sms appropiate people 1 time , thats it.

my question is, there smarter way this? secondly, if cron job generation idea enough, there way remove individual old cron jobs dont clug cron job list old jobs never run again?

thanks in advance.

if you're worried creating many cron jobs (not sure how many problem on system), why not create 1 cron job @ os level? can call program every 10 minutes or so, , can check if there new people need sent sms.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -