Get Root Directory Path of a PHP projectHome » Get Root Directory Path of a PHP project Posted on June 8, 2019 AdminLatest In 342Root Directory Path of a PHP#Get the document root – $_SERVER[‘DOCUMENT_ROOT’]#Get the current file’s folder__DIR__ Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment *Name Email Website ΔThis site uses Akismet to reduce spam. Learn how your comment data is processed.