php - Trouble setting interval -


function crimemaketime($until){     $now = time();    $difference = $until - $now;     $days = floor($difference/86400);    $difference = $difference - ($days*86400);     $hours = floor($difference/3600);    $difference = $difference - ($hours*3600);     $minutes = floor($difference/60);    $difference = $difference - ($minutes*60);     $seconds = $difference;    $output = "$minutes minutes , $seconds seconds";     return $output;     } 

hi, im looking set , interval no refreshing need timers.

this have above works fine output, im unable work setinterval.

ive searched internet few hours , nothing has seemed work or maybe im doing wrong.

any appreciated, many thanks.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -