To get the complete base path where the Drupal site is installed you can use:
1 |
$root_path = $_SERVER['DOCUMENT_ROOT'] . base_path() |
On a Ubuntu system you will get something like:
1 |
/var/www/all_projects/myproject/ |
If you only use “base_path()”, you will obtain only:
1 |
/myproject/ |
No comments yet.