phpの小さなテクニック
460 ワード
<?php
function getDinamicDate(){
return $date = date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME']);
}
function getStaticDate(){
return $date = date('Y-m-d H:i:s',time());
}
$i=0;
while(true){
$date = getDinamicDate();//$date = getStaticDate();( )
echo $date."
";
sleep(1);
if($i>1000){
break;
}
$i++;
}
?>
,getStaticDate , , getDinamic