On Wednesday, May 16, 2001, at 09:47 PM, Ryan Christensen wrote:

> No.. as I said in my original post, this is on Linux.. so I was actually
> wondering how it would be a risk in Linux.. not win..

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.

--
/chris/


-- 
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