jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 87
Hello, I use MyACC and I wanna display UpTime on a website but there's something wrong.
Code in status.php
so when I use $status['uptime'] --- shows uptime in seconds ex. 560 sec
using $status['uptimeReadable'] shows nothing but needed declaration before $status['uptimeReadable'] = ' ';
And I can't figure out what's going on
Code in status.php
PHP:
$status['uptime'] = $serverStatus->getUptime();
$h = floor($status['uptime'] / 3600);
$m = floor(($status['uptime'] - $h * 3600) / 60);
$status['uptimeReadable'] = $h .'h '.$m.'m';
so when I use $status['uptime'] --- shows uptime in seconds ex. 560 sec
using $status['uptimeReadable'] shows nothing but needed declaration before $status['uptimeReadable'] = ' ';
And I can't figure out what's going on