Get Root Directory Path of a PHP projectHome » Get Root Directory Path of a PHP project Sat-Jun-2019 11Root Directory Path of a PHP#Get the document root – $_SERVER[‘DOCUMENT_ROOT’]#Get the current file’s folder__DIR__Leave a Reply Cancel reply You must Register or Login to post a comment.