The Code-Bin
System Uptime (Windows)
Posted by: rrinc | December 20, 2007 @ 9:20pm

PHP Code



Syntax Highlighting





Author Comments
To use this script you will need uptime.exe from Microsoft and placed in a system Path (such as in the Windows Folder). You can get uptime.exe from Microsoft: http://support.microsoft.com/kb/232243

Variables:
$days - number of days the computer has been on
$hours - hours excluding days
$minutes - minutes excluding hours and days
$seconds - seconds excluding hours, days, and minutes
Rating


4.73 / 8
161 Votes