程序运行多少天的代码

2013-11-23 11:27:54 -0500
<?php
$strtotime=strtotime("2013-02-23");//获取开始统计的日期的时间戳
$now=time();//当前的时间戳
$yxts=ceil(($now-$strtotime)/86400);//取相差值然后除于24小时(86400秒)
echo"本站已安全运行({$yxts})天";//输出
?>
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N