Hey guys, I am writing a little script that will will in cron and from the web. I need to add security where if it gets ran from the web then the admin must be logged in. It's if cron then it can ignore the admin account. Whats the best way to determine if the cron job launched the script. I don't want to use query strings because I had a lot of trouble trying to get query strings to work on my web host. Thanks.
I'd probably just have the script email me with details (when, who, etc.). You could also configure the output in the cron to append to a log file