I know I can add a custom value to the $_SERVER variable through Nginx with
fastcgi_param MY_VARIABLE "myValue";
Is it possible to add the same variable to PHP CLI $_SERVER? This would be used specifically for cron jobs. I'm using an Ubuntu server.
One option I've found is to call the PHP script like
$ MY_VARIABLE="myValue" php /path/to/php/script
But this seems less than ideal.
By default environmental variables are not sent to PHP and as I understand it, doing so will slow things down slightly. I'd like to avoid this if possible.