function linuxUptime()
{
$ut = strtok( exec( "cat /proc/uptime" ), "." );
$days = sprintf( "%2d", ($ut/(3600*24)) );
$hours = sprintf( "%2d", ( ($ut % (3600*24)) / 3600) );
$min = sprintf( "%2d", ($ut % (3600*24) % 3600)/60 );
$sec = sprintf( "%2d", ($ut % (3600*24) % 3600)%60 );
return array( $days, $hours, $min, $sec );
}
$ut = linuxUptime();
?>
Running and online!
fesg.dk system up for:
echo "$ut[0] days, $ut[1] hours and $ut[2] minutes."; ?>
Current bandwidth utilization 848.03 kbit/s
Go visit the creators website!
avatarius.dk
Reload to see another "cookie":
|
|