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
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
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
7 matches
Mail list logo