
[y] <?php
$strtotime=strtotime("2013-02-23");// 获取开始统计的日期的时间戳
$now=time();// 当前的时间戳
$yxts=ceil(($now-$strtotime)/86400);// 取相差值然后除于 24 小时 (86400 秒)
echo"本站已安全运行 ({$yxts}) 天";// 输出
?>[/y]
本文标题:《PHP 网站运行多少天代码》作者:adminMo
原文链接:http://m.cway.top/post/368.html
特别注明外均为原创,转载请注明。
扫描二维码
可在微信查看或分享至朋友圈。
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。