Eğer sayfa her saniye yerine, yalnızca yenileme aşağı saymak istiyorsanız, JavaScript kullanmalısınız. Orada examples çok var, ve diğerleri Javascript geri sayım arayarak google kullanılarak bulunabilir
PHP bunu yapmak istiyorsa, en iyi yolu, time() adlı zaman biter ne zaman unix zaman damgası ve değerini almak için mktime() kullanmaktır.
Farkı bulun ve sonra sola zaman hesaplayabilirsiniz:
$diff = mktime(...) - time();
$days = floor($diff/60/60/24);
$hours = floor(($diff - $days*60*60*24)/60/60);
vb
EDIT
Javascript ...
date object Temel fikir
var date = new Date(); //gets now
var weekday = date.getDay(); //gets the current day
//0 is Sunday. 6 is Saturday
if ( weekday == 0 ){
date.setTime()(date.getTime()+60*60*24); //increase time by a day
}
if ( weekday == 6 ){
date.setTime()(date.getTime()+60*60*24*2); //increase time by two days
}
//need to check if we have already passed 16:30,
if ( ( date.getHours() == 16 && date.getMinutes() > 30 ) || date.getHours() > 16){
//if we have, increase the day
date.setTime()(date.getTime()+60*60*24)
}
date.setHours(16);
date.setMinutes(30);
//now the date is the time we want to count down to, which we can use with a jquery plugin