aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade_feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade_feed.php')
-rw-r--r--upgrade_feed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/upgrade_feed.php b/upgrade_feed.php
index 1d04ba650..872fca870 100644
--- a/upgrade_feed.php
+++ b/upgrade_feed.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');