base_path

Definition

base_path()
includes/common.inc, line 1223

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'];
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.