Alright... I search all over and could not find any help on displaying uptime information from a windows xp machine. First of all, I know I'm a moron for using Windows for a server, but its for a school thing... so blah. Anyhow, after a while, I gave up and went over to M$ site and found the uptime.exe file (which is not packaged with XP or 2000). From there, I wrote a script to convert the output into a 'prettier' format. I'm just attatching the script and providing a link so that those who get as frustrated as I was can just cut and paste. A link providing the script and upload.exe file can be found here. Otherwise, the code is:
<?
function upTime(){
$uptime = exec('C:\uptime.exe');
list($temp,$up) = split('[:]', $uptime);
list($t1,$t2,$t3,$t4) = split('[,]', $up);
$t1 = trim($t1); $t2 = trim($t2);
$t3 = trim($t3); $t4 = trim($t4);
list($day,$temp) = split('[ ]', $t1);
list($hour,$temp) = split('[ ]', $t2);
list($min,$temp) = split('[ ]', $t3);
list($sec,$temp) = split('[ ]', $t4);
$d = $h = $m = $s = 0;
if($day < 100){
if($day < 10) $d = "00$day";
else $d = "0$day";
} else $d = "$day";
if($hour < 10) $h = "0$hour";
else $h = "$hour";
if($min < 10) $m = "0$min";
else $m = "$min";
if($sec < 10) $s = "0$sec";
else $s = "$sec";
echo "<font size=1>".$d."d +$h:$m:$s</font>";
}
upTime();
?>
one more thing... I AM ALSO A NEWBIE... so don't bash my script... I'm still learning. Feel free to use the script and file as you may.