aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/upgrade.php b/upgrade.php
index bf726cc6e..0c324d10a 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -21,6 +21,12 @@
// | USA. |
// +-----------------------------------------------------------------------+
+//check php version
+if (version_compare(PHP_VERSION, '5', '<'))
+{
+ die('Piwigo requires PHP 5 or above.');
+}
+
define('PHPWG_ROOT_PATH', './');
include_once(PHPWG_ROOT_PATH.'include/functions.inc.php');