Issue #1315886 by xjm, jhodgdon: Clean up API docs for includes directory, files...
[project/drupal.git] / install.php
CommitLineData
1c75a210 1<?php
1c75a210 2
a3bb66e4 3/**
2d4b5d08
AB
4 * @file
5 * Initiates a browser-based installation of Drupal.
6 */
7
8/**
a3bb66e4
AB
9 * Root directory of Drupal installation.
10 */
d802c69a 11define('DRUPAL_ROOT', getcwd());
a3bb66e4 12
c529e4af
DB
13/**
14 * Global flag to indicate that site is in installation mode.
15 */
e9f52b42
H
16define('MAINTENANCE_MODE', 'install');
17
4acbcf6d
AB
18// Exit early if running an incompatible PHP version to avoid fatal errors.
19if (version_compare(PHP_VERSION, '5.2.4') < 0) {
20 print 'Your PHP installation is too old. Drupal requires at least PHP 5.2.4. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.';
21 exit;
22}
23
2d4b5d08
AB
24// Start the installer.
25require_once DRUPAL_ROOT . '/includes/install.core.inc';
26install_drupal();