Whats the best way of getting the uptime of a RedHat server in a PHP page??
Can i call the external command uptime and print the output? if so how..
Thanks
Liaaam
$str = shell_exec("uptime"); preg_match("/up (.+?\,.+?)\,/", $str, $buffer); echo $buffer[1];
Tested with debian woody