RE: Server Uptime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx] 
Sent: Monday, February 07, 2005 3:21 PM
To: php-general@xxxxxxxxxxxxx
Subject:  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux