Html help

Out of context: Reply #2

  • Started
  • Last post
  • 11 Responses
  • Raybandana0

    // absolute filesystem path to the web root
    define('WWW_DIR', dirname(__FILE__));

    // absolute filesystem path to the application root
    define('APP_DIR', WWW_DIR . '/../app');

    // absolute filesystem path to the libraries
    define('LIBS_DIR', WWW_DIR . '/../lib');

    define('DOWNLOAD_DIR', WWW_DIR . '/download');

    // absolute filesystem path to this web root
    $params['wwwDir'] = dirname(__FILE__);

    // absolute filesystem path to the application root
    $params['appDir'] = realpath(dirname(__FILE__) . '/../app');

    // load bootstrap file
    require $params['appDir'] . '/bootstrap.php';

View thread