Apex Training - Crontab Job
Let's create our crontab job that will execute once every 24 hours, and randomly
pick a winner using our
This will create a new file at /src/training/cron/pick_winner.php. Open the file, and enter the following contents.
As you will notice within the properties of the above class, we set
Let's move on to Creating a Notification Controller to handle the e-mail messages that will be sent out.
Need a Professional?
Need development work by the creator of Apex? E-mail email@example.com for a free consultation.
Subscribe to the low traffic mailing list to stay updated on Apex.