Hi guy i have a program which use to send group emails, i set a cornjob per mins for this program, and set execute per 2nd/min, and check if the now time is match to my defined schedule time in db. if true the program will run and send email, else nth...
the problem is i want to dynamic set the amount of email sending per mins by user, let say i have 10000 emails to send, and i want to send 3 emails per min, something like that, but i cant find the way when using cronJob, (set cookie? record the current email to db?), since i found that if i use sleep(), it will cause php execute limit error...
Can anyone tell me how to do that? or using other method to do schedule task? pear? if using other methods, can show how to use it briefly ? Please And Thx