Hi i think this is a simple question really might not be though, anyway im trying to use the following code to echo offline/crashed if the time stamp is over 5 minutes old but when i tried this code on a timestamp only 50 seconds old and one 18 hours old they both echoed offline. Did i do somthing wrong?
Any help is greatly appreciated.
list($date, $time) = explode(' ', $str);
list($year, $month, $day) = explode('-', $date);
list($hour, $minute, $second) = explode(':', $time);
$timestamp = mktime($hour, $minute, $second, $month, $day, $year);
if (convert_datetime($GetCharsrow['cur_timestamp']) < (time() - 5))