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,
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
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
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:
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
There is no function, but you could shell out and grab the output from
the "uptime" command and use regex to parse the resultsor use one
command line with uptime piped to awk to pull out what you need.
HTH!
--Sam
-Original Message-
From: Brad Ciszewski [mailto:[EMAIL PROTECTED]
6 matches
Mail list logo