PHP Get Base Directory
To know the base directory we may use $_SERVER['DOCUMENT_ROOT'];
//to know your base directory
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.