I do not wish to rely on a time()
call made to a start of the script. Instead, i find $_SERVER['REQUEST_TIME']
more favourable. I tried that on CLI and it works.
Since I read docs which say information in the $_SERVER
array is not guaranteed, and the array being named as $_SERVER
, i was wondering if it safe to use $_SERVER
on the CLI. The doc for $_SERVER
on php.net says it is "Server and execution environment information". Will $_SERVER['REQUEST_TIME']
always be available?