aboutsummaryrefslogblamecommitdiffhomepage
path: root/check_essentials.php
blob: a47cd5a8d31471ac23f78feca667832b626e0377 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14












                                                                                                             
<?php

// PHP 5.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
    die('This software require PHP 5.3.3 minimum');
}

// Short tags must be enabled for PHP < 5.4
if (version_compare(PHP_VERSION, '5.4.0', '<')) {

    if (! ini_get('short_open_tag')) {
        die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
    }
}