Welcome Guest, Not a member yet? Register   Sign In
What to use to send an email atomatically at certain time of day
#4

Since the code for the site only runs when someone accesses a page on the site, you can't really trigger something at a specific time unless you schedule it with the OS (which is, more or less, what a cron job is).

There are a few good tutorials out there about how to setup cron jobs from PHP, but this does depend on you having access to actually do that on your server. You could probably find a good PHP library to do it, as well. If you wanted to schedule/configure cron jobs from your CI website (you would definitely want to make sure that access to the page is locked down), you would need to adapt the tutorial/library to CodeIgniter, but the difficulty of that is largely dependent on your specific requirements.

If you have shell access on the sites, it would probably be easier to write a shell script to setup the cron jobs.
Reply


Messages In This Thread
RE: What to use to send an email atomatically at certain time of day - by mwhitney - 04-27-2016, 09:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB