server-status-project / server-status

Simple, modern looking server status page with administration and some nice features, that can run even on shared webhosting
https://demo.status.sajdl.com/
Apache License 2.0
394 stars 87 forks source link

Wiki article needs updated #168

Closed kim3-sudo closed 1 year ago

kim3-sudo commented 1 year ago

The wiki article detailing installation needs to be updated. Support for empty() to determine the fullness of constants was not added until 5.5.

empty() to determine fullness of constants is needed for ./admin, specifically in line 42.

DEFINE("CRON_SERVER_IP", $db -> getSetting($mysqli, "cron_server_ip"));
if( empty(CRON_SERVER_IP)) {

is not valid in PHP 5.4, since CRON_SERVER_IP is defined as a constant and empty() cannot be used with a constant.