$base_url

  1. drupal
    1. 6
    2. 8
    3. 7

The base URL of the Drupal installation.

See also

drupal_settings_initialize()

documentation/developer/globals.php, line 22

<?php
global $base_url
?>