RE: [PHP] Server Uptime
| From: | Sam Masiello | Date: | Mon, 07 Feb 2005 22:38:13 +0000 |
| Subject: | RE: [PHP] Server Uptime | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208210@lists.php.net to get a copy of this message | ||
There is no function, but you could shell out and grab the output from
the "uptime" command and use regex to parse the results....or use one
command line with uptime piped to awk to pull out what you need.
HTH!
--Sam
-----Original Message-----
From: Brad Ciszewski [mailto:bradcis@charter.net]
Sent: Monday, February 07, 2005 3:21 PM
To: php-general@lists.php.net
Subject: [PHP] Server Uptime
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
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php