Ive developed an extremely simple PHP code that echo's the uptime of the server, which im sure is in seconds.
Here's the code:
Code:
<?php
$uptime = exec("cat /proc/uptime");
$uptime = split(" ",$uptime);
$uptime = $uptime[0];
?>
<html>
<body>
<font face="verdana" size="1pt">
Uptime For This Month = <b><?php echo $uptime; ?></b>
</font>
</html>
However, i need to further develop this code to make it complete, and im a novice at PHP.
Could anyone help me? I need it to echo the uptime for that monthly ONLY and in a percentage. Could anyone help me?
thanks in advance!