I have a script that I need to run with PHP via cron. The original author of the script made a lot of user of certain
$_SERVER parameters (like
But it appears that certain variables don't exist when running PHP via command line or via CRON. For example, there is no request uri, so it makes sense that the
REQUEST_URI parameter wouldn't be available.
Is there any way around this other than to completely rewrite the script in order to avoid using special
$_SERVER parameters that aren't universally available?