why not:
PRINT exec("cmd /c uptime");
instead of \\c ?
"Dave Milford" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm trying to create a little script to show the system uptime (and
> hopefully system resource usage) on my Windows 2000 Professional SP2 box.
> I'm currently running Apache 1.3.20 and PHP 4.0.6 on it... It should be
> noted that I have MS' "uptime" program installed.
>
> So far, I've tried using: system(uptime);
> That didn't work. I get the following printed: "Warning: Unable to fork
> [uptime] in d:\www\inc_top.html on line 58".
>
> So I hit the PHP website, found out some other methods of doing this,
like:
> PRINT exec("cmd \\c uptime");
> This time it displays: d:\www>
> (that's my HTTPd root dir)
>
> How could I get this displaying my uptime, and maybe even resource usage?
> Any help would be appreciated.
>
> Thanks
>
> ---------------------------
> Dave Milford
> ICQ : 8516328
> Email: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]