"Christopher Heschong" <[EMAIL PROTECTED]> wrote:
> If you want to get the current uptime in Linux without a system() call,
> you should be able to fopen() the /proc/uptime file.  The first number
> is the number of seconds the machine has been up, the second is the
> number of seconds the machine's processes have been idle.

I have a function I wrote that displays uptime and takes arguments of time
units and decimal places.  Have fun.

http://www.befriend.com/code_gallery/php/get_uptime/

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to