[PHP]<?php
$range = split(',', '2008-11-1>2008-11-30=123,2008-12-1>2008-12-31=222,');
for ($y=0; $y<(count($range)-1); $y++){
$equalto = explode('=',$range[$y]);
$splitagain = split('>',$equalto[0]);
for ($s=strtotime($splitagain[0]); $s<(strtotime($splitagain[1])+10); $s=$s+(60*60*24))
{
$money[$s]=$equalto[1];
}
}
$kk = $money[1225497600]; //1225497600 is the time stamp within the for loop
if ($kk==''){echo 'what happen??';}
else {echo $kk;}
?>[/PHP]
it is the server it works http://kamchihau.meibu.com/testcalender.php
however in this server it goes. http://www.yagit.com.hk/testcalender.php