What is wrong with my code:
if(!defined(FILE_ROOT_PATH)){
define('FILE_ROOT_PATH', $_SERVER['DOCUMENT_ROOT']);
}
echo 'Path: '.FILE_ROOT_PATH;
when run from CLI it gives:
Use of undefined constant FILE_ROOT_PATH - assumed 'FILE_ROOT_PATH' in ...
Can't I use constants on CLI?