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