base_path

Definition

base_path()
includes/common.inc, line 1379

Description

Returns the base URL path of the Drupal installation. At the very least, this will always default to /.

Related topics

Namesort iconDescription
Input validationFunctions to validate user input.

Code

<?php
function base_path() {
  return $GLOBALS['base_path'];
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.