Hi Friends,

Can anyone one have an idea about how we make cron in php. I mean i have to records of 6000 email id and we have to send mail them randomly selected email templates with in 48 hour. Once student got the mail from then from the database email id of student is deleted.

If someone has idea for that then reply. Thanks for giving time to read my problem.

Recommended Answers

All 2 Replies

Start by writing a standard PHP script that can accomplish the tasks you have outlined. This can then be secured so it can only be called from the CLI, if required.

Once that's working, here's a post I found at the top of the Google results for "php cron task", which should point you in the right direction for calling the script from the crontab.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.