uptime script

You want to be able to see the status of your server without logging in via ssh?

You can create a simple script to display the uptime and load of your server in 1 minute

create a new file eg. uptime.php and insert

<?=`uptime`?>

upload it to your webservers public directory, and you’re done

go to http://www.mydomain.com/uptime.php

and you’ll see

21:01:46 up 15 days, 2 min, 1 user, load average: 0.08, 0.06, 0.01

  1. I think that like this it’s better

    Uptime:

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>