/ Published in: PHP
URL: http://it-ride.blogspot.com/2009/08/php-server-uptime.html
This only works on Linux and probably other Unix-like OSes that store the uptime in /proc/uptime
Expand |
Embed | Plain Text
function get_uptime() { if (!$file) return false; if ($data === false) return false; 'hours' => $data/60/60%24, 'minutes' => $data/60%60, 'seconds' => $data%60 ); return $uptime; }
You need to login to post a comment.
