X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/edda36c99d81f079a59f12da199b5293d786c182..a65f03c8810c92b631239acd346d4ec443d288ce:/dbinstall.php diff --git a/dbinstall.php b/dbinstall.php index c32695d5..49d61f1e 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -67,6 +67,14 @@ if ($request->isGet()) { echo('Error: DSN value is not defined. Check your config.php file.
'); } + // Check if PHP version is good enough. + $required_version = '5.2.1'; // Something in TCPDF library does not work below this one. + if (version_compare(phpversion(), $required_version, '>=')) { + echo('PHP version: '.phpversion().', good enough.
'); + } else { + echo('Error: PHP version is not high enough: '.phpversion().'. Required: '.$required_version.'.
'); + } + // Depending on DSN, require either mysqli or mysql extensions. if (strrpos(DSN, 'mysqli://', -strlen(DSN)) !== FALSE) { if (extension_loaded('mysqli')) {