PHP Get Base Directory tutorial gives you an example to get the base directory
PHP Get Base Directory tutorial gives you an example to get the base directoryPHP Get Base Directory
To know the base directory we may use $_SERVER['DOCUMENT_ROOT'];
Code:
<?php
//to know your base directory
print ($_SERVER['DOCUMENT_ROOT']);
?>
Output:
C:/wamp/www/