Re: [PHP] Server Uptime

2005-02-14 Thread Greg Donald
On Sun, 13 Feb 2005 21:43:31 -0700, Leif Gregory <[EMAIL PROTECTED]> wrote: > If you're not on a Windows server, *nix might have a file other than > pagefile.sys that you could do the same thing with. Or you can just use uptime. > php -r 'system("uptime");' 07:35:21 up 7 days, 23:10, 5 users,

Re: [PHP] Server Uptime

2005-02-14 Thread Burhan Khalid
Leif Gregory wrote: Hello Brad, Monday, February 7, 2005, 3:21:26 PM, you wrote: BC> What is the function, or how do you make a script that displays BC> the server's uptime? If you're on Windows you could do this: ** If you're not on a Windows server, *nix might have a file other than

Re: [PHP] Server Uptime

2005-02-13 Thread Leif Gregory
Hello Brad, Monday, February 7, 2005, 3:21:26 PM, you wrote: BC> What is the function, or how do you make a script that displays BC> the server's uptime? If you're on Windows you could do this: ** function serverUptime() { $uptimeStamp = filemtime('c:/pagefile.sys'); $uptime = t

Re: [PHP] Server Uptime

2005-02-07 Thread Greg Donald
On Mon, 7 Feb 2005 16:21:26 -0600, Brad Ciszewski <[EMAIL PROTECTED]> wrote: > What is the function, or how do you make a script that displays the server's > uptime? php -r 'system("uptime");' or -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http:

Re: [PHP] Server Uptime

2005-02-07 Thread darren kirby
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 'upt

RE: [PHP] Server Uptime

2005-02-07 Thread Sam Masiello
PROTECTED] 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 (htt

[PHP] Server Uptime

2005-02-07 Thread 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php