The documentation says that I need to:
If your hosting account is on LINUX/UNIX system you can setup a CRON job to point to this URL http://yourUrlToThisScript.com/cron.php?cron=do&d=31
Although this is the only information they give on how to set up the cron. I know the script is working correctly because when I access the URL by a browser I receive the emails.
- I have looked at a couple of examples and tried reading the manual: Executing PHP files and have come up with:
*/1 * * * * /usr/bin/php -q /var/www/website/public/domain-manager/cron.php cron=do&d=31 >/dev/nul
Although this is not working and I don't receive any emails or errors?
- How can I protect this file
cron.php
so that it can't be executed from a browser? Maybe something like this answer although for a single file instead of a directory.