$_SERVER variables not available from command line

- if running an app from command line, REQUEST_URI and SERVER_NAME are
not available