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