Files
FOSSBilling/src/install/index.php
T
Belle Aerni afdb9f93bf Added a check for PHP version
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
2023-01-22 17:12:37 -08:00

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();