I need a php code that can detect the root foldername that my website is installed to. I need to use this constant in my bootstrap.php so it can't be relative to where the file is called from. Atm I have my root folder and admin folder. I need the index.php at my admin folder to be able to use the installation folder name. How can this be achieved ?