Re: Server Uptime
| From: | darren kirby | Date: | Mon, 07 Feb 2005 22:37:04 +0000 |
| Subject: | Re: Server Uptime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208211@lists.php.net to get a copy of this message | ||
quoth the Brad Ciszewski:
> What is the function, or how do you make a script that displays the
> server's uptime?
>
> Thanks,
>
> Brad Ciszewski
> www.BradTechnologies.com Web Services
Unless I am mistaken, there is no built in function for uptime. What I have
done is put a static binary of 'uptime' into safe_mode_exec_dir (specified in
php.ini) and use an exec call to get the info...
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]