PHP Tutorial: Server load bar chart
Server Load: Just a quick tutorial on drawing the server load bar chart in php: serverload.php function get_server_load($windows = 0) { $os = strtolower(PHP_OS); if (strpos($os, “win”) === false) { if (file_exists(“/proc/loadavg”)) { $load = file_get_contents(“/proc/loadavg”); $load = explode(‘ ‘, $load); return $load; } elseif (function_exists(“shell_exec”)) { $load = explode(‘ ‘, `uptime`); return $load; }… Read More »