c_shelswell Posted May 14, 2007 Share Posted May 14, 2007 Hi, I'm working on a mailing program that will hopefully send mails out to around 100,000 people. I've got search queries that get all the email addresses from my DB and fills a temporary table with the results. I then want a user to be able to press "send" on their email that'll create a CRON job which will go down the populated list and send all the mails, flagging each one as done as it happens. The reason i want the CRON is so the user can turn their computer off and the CRON will just get on with it. Can anyone tell me how i might go about creating this CRON from php? Or if there's a better way i'm not thinking of. many thanks Quote Link to comment https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/ Share on other sites More sharing options...
chigley Posted May 14, 2007 Share Posted May 14, 2007 PHP can't set Cron Jobs itself. What type of server are you on? If you have cPanel installed it has a simple GUI for crons Quote Link to comment https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/#findComment-252631 Share on other sites More sharing options...
jitesh Posted May 14, 2007 Share Posted May 14, 2007 http://www.scrounge.org/linux/cron.html Quote Link to comment https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/#findComment-252635 Share on other sites More sharing options...
c_shelswell Posted May 14, 2007 Author Share Posted May 14, 2007 We have a dedicated server with cpanel. Setting up a cron isn't the problem i can do that it was more that i wanted to automatically create a cron for each email job that was on. I think though i'll have a master cron that'll run one file that'll just look for a job every 10 mins or so, if it finds one it can run it. That sounds a lot easier i think Thanks for your replies Quote Link to comment https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/#findComment-252641 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.