]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/check_essentials.php
add install script after composer install
[github/wallabag/wallabag.git] / app / check_essentials.php
1 <?php
2 if (!file_exists(__DIR__ . '/config/config.inc.php')) {
3 die('wallabag seems to be not installed. Please execute ./bin/install before.');
4 }
5
6 if (version_compare(PHP_VERSION, '5.3.3', '<')) {
7 die('This software require PHP 5.3.3 minimum');
8 }
9
10 if (version_compare(PHP_VERSION, '5.4.0', '<')) {
11 if (! ini_get('short_open_tag')) {
12 die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
13 }
14 }