[Solved] Undefined variable: __ROOT__ PHP 7? [duplicate]


$__ROOT__ 

seem’s to be your document root (writed as a “magic constant” variable..
and visibly, the transition to php7 broke… 🙂

often it’s defined by using real php magic constant like :

For PHP >= 5.3.0 try

__DIR__ 

For PHP < 5.3.0 try

dirname(__FILE__)

solved Undefined variable: __ROOT__ PHP 7? [duplicate]