partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

check-php.php (1105B)


      1 /**
      2 <?php
      3 echo '*/';
      4 if (version_compare(phpversion(), '7.0.0', '<')) {
      5     echo '{"success": false, "message": "PHP Version '.phpversion().' is too old, minimum required version is PHP 7.0.",';
      6     echo '"errors": ["Your PHP Version is too old. The minimum required version is 7.0.0. ';
      7     echo '<a target=\"_blank\" href=\"https://wiki.partkeepr.org/wiki/KB00003:PHP_Version\">Read more…</a>"]}';
      8 } elseif (version_compare(phpversion(), '7.2', '>=')) {
      9     echo '{"success": false, "message": "PHP Version '.phpversion().' is not supported.",';
     10     echo '"errors": ["Your PHP Version is too new. PartKeepr currently only works well with PHP <= 7.1."]}';
     11 } else {
     12     echo '{"success": true, "message": "PHP Version '.phpversion().' found"}';
     13 }
     14 exit;
     15 ?>
     16 */
     17 {
     18     "success": false,
     19     "message": "You don't have PHP installed on your server, or the module is not activated.",
     20     "errors":
     21     [
     22         "In order to run PartKeepr, you need to have the PHP module activated on your web server. <a target=\"_blank\" href=\"https://wiki.partkeepr.org/wiki/KB00001:PHP_Module\">Read more…</a>"
     23     ]
     24 }