I've got a script that's accessible on the web that draws a bunch of info from a database and spits it out in pretty tables.
I also have a function that sends emails to myself if the data in the table meets certain criteria.
However, I don't want the email to be sent any time someone visits the webpage. Instead, I intend to set up a Cron job that runs the script every few hours.
How can I tell my PHP script to differentiate between calls from a browser and calls from my cron job? Right now the script doesn't take any parameters via query string, if that helps.
Thanks!
-Aaron