TECK.
you have already added: @exec('uptime')
so I cannot redeclare that code you posted, you are parsing the @exec('uptime') to only show the load averages right? if so how do I un parse the code below so it shows the uptime right near the load?
thanks.
Code:
if ($stats=@exec('uptime')) {
preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs);
$serverload=' [Server Load: '.$regs[1].' : '.$regs[2].' : '.$regs[3].']';
} else {
$serverload='';
}