Get Root Directory Path of a PHP project Posted on June 8, 2019 AdminLatest In 323 Root Directory Path of a PHP #Get the document root – $_SERVER[‘DOCUMENT_ROOT’] #Get the current file’s folder __DIR__