You are here

constant DRUPAL_ROOT in Advertisement 7

Same name and namespace in other branches
  1. 7.3 ad_serve.php \DRUPAL_ROOT

@file Configuration.

Copyright (c) 2005-2009. Jeremy Andrews <jeremy@tag1consulting.com>.

By default, adserve configuration happens dynamically as ads are served. However, it is possible to override dynamic settings with static defaults. Refer to the documentation/ADSERVE_CONFIGURATION.txt for details on adding adserve overrides to settings.php.

Note that the path to Drupal's root directory can not be overriden in settings.php as adserve needs this path to find settings.php in the first place. To hard code the path to Drupal's root directory, uncomment the following define statement, and set the correct path. This is not generally required. On a Unix server this path will be something like '/path/to/web'. On a Windows server this path will be something like 'D:\path\to\web'.

1 use of DRUPAL_ROOT
adserve_include_drupal in ./adserve.inc
Include Drupal's bootstrap.inc.

File

./adserve.inc, line 22
Configuration.

Code

define('DRUPAL_ROOT', '/var/www/drupal7');