mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 12:48:08 +09:00
Check added to the index.php file instead of the install.php file. For some reason, on less than PHP 8.0, no matter where I put it in the install.php file, I never could get anything to display on the page, regardless of what I tried, so this way it at least is checked before redirecting to that file
8 lines
260 B
PHP
8 lines
260 B
PHP
<?php
|
|
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
|
|
echo 'Error: PHP version 8.0.0 or higher is required. You have version ' . PHP_VERSION;
|
|
exit();
|
|
}
|
|
header("Location: " . pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME) . "/install.php");
|
|
exit();
|