DRUPAL_ROOT

  1. drupal
    1. 7 update.php
    2. 7 modules/simpletest/tests/https.php
    3. 7 xmlrpc.php
    4. 7 modules/simpletest/tests/http.php
    5. 7 index.php
    6. 7 authorize.php
    7. 7 install.php
    8. 7 cron.php
    9. 8 core/modules/system/tests/http.php
    10. 8 core/modules/system/tests/https.php
    11. 8 core/update.php
    12. 8 core/modules/statistics/statistics.php
    13. 8 core/install.php
    14. 8 index.php
    15. 8 core/authorize.php
    16. 8 core/xmlrpc.php

Root directory of Drupal installation.

File

./install.php, line 11
Initiates a browser-based installation of Drupal.

Code

define('DRUPAL_ROOT', getcwd())

Comments

why getcwd ?

what about

<?php
define
('DRUPAL_ROOT', dirname(__FILE__));
?>

?

getcwd() !!, it looks like it relays on the directory set by the web server, well, Apache will do it, will all other do?

Login or register to post comments