Re: Uptime script?

From: Date: Thu, 17 May 2001 03:48:49 +0000
Subject: Re: Uptime script?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53156@lists.php.net to get a copy of this message
"Christopher Heschong" <chris@screwdriver.net> 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/

« previous php.general (#53156) next »