The base path of the Drupal installation.
This will at least default to '/'.
See also
File
- developer/
globals.php, line 31 - These are the global variables that Drupal uses.
Code
<?php
global $base_path
?>
Login or register to post commentsThe base path of the Drupal installation.
This will at least default to '/'.
<?php
global $base_path
?>
Login or register to post comments
Comments
You can always use $GLOBALS['base_path']
Important to note that GLOBALS is always available as an array.
So $base_path is always available as $GLOBALS['base_path'].
Also be careful as your database connection info is also in the GLOBALS array.