Hi All,
I am running Apache 2.0.44 with PHP 4.3.0, and i am wanting to know is there a script that can see the uptime on a windows machine. is it possible??
Matt
If you are using NT, 2000, or Xp you can download uptime.exe from Microsoft(http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp) to display the uptime. Heres a simplistc example to return the uptime assuming that you placed uptime.exe in C:\winnt\system32:
print(exec('C:\winnt\system32\uptime.exe'));
Remember to include the full path to uptime.exe.
i have made a script that doesn't require any special files... PM me if you would like the script.