Jump to content

[SOLVED] Create a CRON job with PHP


c_shelswell

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/
Share on other sites

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.