I've got a PHP script that I want to run through cron. It should load different configuration information depending on if the script is running on my local server, the QA server, or the production server. The problem is that when the script is run through cron, it doesn't have any of the identifying $_SERVER information that I use to figure out which environment the script is running on.
The only thing I could think of was to have the cron job itself attach a parameter to the script, but I was hoping there was a better way where I wouldn't have to do that. Is there any other way to identify which server the script resides on when running it from cron?
Thanks.