Click to See Complete Forum and Search --> : any uptime script...


tanfwc
12-13-2003, 03:24 AM
That show the server uptime.

hmmm...anyone know?

If it is possible, the script can also use SQL.

AdamGundry
12-13-2003, 05:03 AM
Something like this (from here (http://uk.php.net/exec))?

$uptime = exec("expr $(awk '{print $1}' < /proc/uptime | awk -F. '{print $1}' ) / 86400");
print("Uptime: $uptime days");

Adam

tanfwc
12-14-2003, 02:20 AM
ty...let me try it out first...