DRUPAL_ROOT

Root directory of Drupal installation.

171 uses of DRUPAL_ROOT
aggregator_test_feed in modules/aggregator/tests/aggregator_test.module
Page callback. Generates a test feed and simulates last-modified and etags.
authorize.php in ./authorize.php
Administrative script for running authorized file operations.
authorize_get_filetransfer in includes/authorize.inc
Gets a FileTransfer class for a specific transfer method and settings.
authorize_run_operation in includes/authorize.inc
Runs the operation specified in $_SESSION['authorize_operation'].
BatchPercentagesUnitTestCase::setUp in modules/simpletest/tests/batch.test
Sets up unit test environment.

... See full list

File

modules/statistics/statistics.php, line 11

Code

define('DRUPAL_ROOT', substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], '/modules/statistics/statistics.php')));

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.